batch file to automatically restart server?

just wondering how to write a reliable batch file that'll restart my minecraft server
480 Replies
jaegyu
jaegyu2y ago
are you on windows or linux? if you're on linux I actually use this shell script for my servers:
#!/bin/bash

JAVA=/usr/lib/jvm/java-17-openjdk-amd64/bin/java
JAR=server.jar
RMIN=6G
RMAX=8G

while true
do
$JAVA -Xms$RMIN -Xmx$RMAX -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 \
-XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 \
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15\
-XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 \
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 \
-Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true \
-jar $JAR nogui
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for i in 12 11 10 9 8 7 6 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done
#!/bin/bash

JAVA=/usr/lib/jvm/java-17-openjdk-amd64/bin/java
JAR=server.jar
RMIN=6G
RMAX=8G

while true
do
$JAVA -Xms$RMIN -Xmx$RMAX -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 \
-XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 \
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15\
-XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 \
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 \
-Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true \
-jar $JAR nogui
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for i in 12 11 10 9 8 7 6 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done
marshal
marshalOP2y ago
windows
jaegyu
jaegyu2y ago
give me a few then, i’ll look into it this seems to be a 1:1, if you have any problems let me know
@echo off

set "JAVA=C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"
set "JAR=server.jar"
set "RMIN=6G"
set "RMAX=8G"

:loop
"%JAVA%" -Xms%RMIN% -Xmx%RMAX% -XX:+UseG1GC -XX:+ParallelRefProcEnabled ^
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions ^
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 ^
-XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 ^
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 ^
-XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 ^
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 ^
-Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true ^
-jar "%JAR%" nogui
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for %%i in (12 11 10 9 8 7 6 5 4 3 2 1) do (
echo %%i...
timeout /t 1 /nobreak >nul
)
echo "Rebooting now!"
goto loop
@echo off

set "JAVA=C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"
set "JAR=server.jar"
set "RMIN=6G"
set "RMAX=8G"

:loop
"%JAVA%" -Xms%RMIN% -Xmx%RMAX% -XX:+UseG1GC -XX:+ParallelRefProcEnabled ^
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions ^
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 ^
-XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 ^
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 ^
-XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 ^
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 ^
-Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true ^
-jar "%JAR%" nogui
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for %%i in (12 11 10 9 8 7 6 5 4 3 2 1) do (
echo %%i...
timeout /t 1 /nobreak >nul
)
echo "Rebooting now!"
goto loop
make sure to replace your JAVA variable, yours probably wont match mine
marshal
marshalOP2y ago
jdk is the variable? thank you btw do i alsao set the directory?
jaegyu
jaegyu2y ago
i run this in the same directory as the server.jar file it’s where your java.exe is installed. if you only have 1 java version installed you can probably replace it with just java.exe i ran the original script on a linux box with multiple java installs and having to change the default one back and forth was annoying setting JAVA to java.exe works, as long as you have only one install (I just tested this) JAR should be set to whatever your jarfile is named. RMIN is your minimum ram, and RMAX is your maximim ram. youre welcome though lol
marshal
marshalOP2y ago
thank you som uch yeah i meant do i copy and paste the directory windows would give me? i.e C:\Users\infin\Desktop\server wait no java misread wait not sur im sorry i can barely comphrehend batch okay i took a long and hard look at it
jaegyu
jaegyu2y ago
PS C:\Users\jaegyu\Desktop\test-server> ls


Directory: C:\Users\jaegyu\Desktop\test-server


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 6/20/2023 12:02 AM libraries
d----- 6/20/2023 12:02 AM logs
d----- 6/20/2023 12:02 AM versions
-a---- 6/20/2023 12:02 AM 161 eula.txt
-a---- 6/20/2023 12:02 AM 47791053 server.jar
-a---- 6/20/2023 12:02 AM 1330 server.properties
-a---- 6/19/2023 11:56 PM 982 start.bat
PS C:\Users\jaegyu\Desktop\test-server> ls


Directory: C:\Users\jaegyu\Desktop\test-server


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 6/20/2023 12:02 AM libraries
d----- 6/20/2023 12:02 AM logs
d----- 6/20/2023 12:02 AM versions
-a---- 6/20/2023 12:02 AM 161 eula.txt
-a---- 6/20/2023 12:02 AM 47791053 server.jar
-a---- 6/20/2023 12:02 AM 1330 server.properties
-a---- 6/19/2023 11:56 PM 982 start.bat
heres my ls output in the server folder
marshal
marshalOP2y ago
set "JAR=server.jar" i change this and this? set "JAVA=C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"
jaegyu
jaegyu2y ago
give me 2 seconds rq you can put %JAVA_HOME%\bin\java.exe
marshal
marshalOP2y ago
so like
jaegyu
jaegyu2y ago
use ``` before and after
marshal
marshalOP2y ago
@echo off set "%JAVA_HOME%\bin\java.exe" set "JAR=server.jar" set "RMIN=6G" set "RMAX=8G" :loop "%JAVA%" -Xms%RMIN% -Xmx%RMAX% -XX:+UseG1GC -XX:+ParallelRefProcEnabled ^ -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions ^ -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 ^ -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 ^ -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 ^ -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 ^ -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 ^ -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true ^ -jar "%JAR%" nogui echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!" echo "Rebooting in:" for %%i in (12 11 10 9 8 7 6 5 4 3 2 1) do ( echo %%i... timeout /t 1 /nobreak >nul ) echo "Rebooting now!" goto loop like that?
jaegyu
jaegyu2y ago
yeah, that'll work
marshal
marshalOP2y ago
remove nogui if i want to use gui? thanks alot man
jaegyu
jaegyu2y ago
yeah
marshal
marshalOP2y ago
also what server do you use bukkit
jaegyu
jaegyu2y ago
np bro, you can @ me if you have any questions
marshal
marshalOP2y ago
paper purpur?
jaegyu
jaegyu2y ago
id suggest paper or purpur
marshal
marshalOP2y ago
yeah im using purpur
jaegyu
jaegyu2y ago
but i mostly do forge stuff
marshal
marshalOP2y ago
paper* i mean and i been scowering the internet for paper configs to mkae most farms work
jaegyu
jaegyu2y ago
isnt there a documentation?
marshal
marshalOP2y ago
because paper fucks up alot of auto farms yeah i should probably look into that
jaegyu
jaegyu2y ago
Paper Server Administration | PaperMC Documentation
Welcome to the Paper Server Administration Guide! This guide includes information and tutorials
marshal
marshalOP2y ago
but i can always go to spigot for a more vanila feel
jaegyu
jaegyu2y ago
yeah, im impartial either way, i dont do a whole lot of vanilla server stuff anymore
marshal
marshalOP2y ago
yeah i feel you thanks for the help though
jaegyu
jaegyu2y ago
np at all
marshal
marshalOP2y ago
i can barely understand batch i wrote my own batch file to automatically restart it but i guess it lasted like 4 days when i was gone it was like 3 lines
jaegyu
jaegyu2y ago
does your server crash often? or whats happening?
marshal
marshalOP2y ago
:start jar goto start that was it no its running on an optiplex i use to use fabric the server is running on 6gbs and a 6th gen i5
jaegyu
jaegyu2y ago
in all fairness, thats basically what happens in my script, i just have a lot of jvm flags
marshal
marshalOP2y ago
i switched to paper for something lighter what do the jvm flags do specifically?
jaegyu
jaegyu2y ago
Aikar's Thoughts
JVM Tuning: Optimized G1GC for Minecraft - Aikar's Thoughts
Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.
marshal
marshalOP2y ago
could i do 1gb minimum and 6gb max? i always used that but im not sure how effective it was
jaegyu
jaegyu2y ago
to my limited understanding, default jvm garbage collector isnt the best performance you can get for a minecraft server, and the flags help make it work a lil better anyway, what version of minecraft?
marshal
marshalOP2y ago
latest so stuff is really new its just the annual summer minecraft sevrer i host with my friends at peak hours its like 8-12 people
jaegyu
jaegyu2y ago
if you're using something pre 1.18 thats probably fine, but latest id do 4gb minimum, but dont set the max to be more than like 50% of your physical ram
marshal
marshalOP2y ago
im currently using 6gbs of ram because i have 8 in my other system and windows need 2gbs minium
jaegyu
jaegyu2y ago
do you use the second pc at all?
marshal
marshalOP2y ago
not at all just occasionally to check logs if i dont have rcon set up
jaegyu
jaegyu2y ago
i dont mean to be one of those people, but linux for server stuff is generally really nice compared to windows
marshal
marshalOP2y ago
i used to use rcon yeah i know i was going to use linux i actually installed linux on this laptop i was originally use for the server but i only have a 64 gb flashdrive and it takes forever to flash it i cant find the flash drive i had linux on' its somwhee
jaegyu
jaegyu2y ago
yeah, its not too bad tbh
marshal
marshalOP2y ago
i even might have the ssd the server is on partitioned ready for linux too but it was a pain writing in the terminal not sure if i want to go through it a second time like i watched a tutorial to install chrome
jaegyu
jaegyu2y ago
oh, its usually just sudo apt-get update, sudo apt-get install google-chrome
marshal
marshalOP2y ago
yeah
jaegyu
jaegyu2y ago
but there are gui tools in linux
marshal
marshalOP2y ago
and i mde it so like i didnt need to type in my password to sudo i frogot not sure what i did but i did something along those lines
jaegyu
jaegyu2y ago
yeah, visudo then NOPASSS ALL or wtv i still have to look it up sometimes, but i dont really do it anymore
marshal
marshalOP2y ago
i might use a lighter distro made for servers
jaegyu
jaegyu2y ago
i use ubuntu server 22.04
marshal
marshalOP2y ago
there was a distro for minecraft servers ubuntu server just seems too troublesome to work with its just lines of text
jaegyu
jaegyu2y ago
you can have a desktop
marshal
marshalOP2y ago
fr?
jaegyu
jaegyu2y ago
yeah, if you dont install it with the installer you can just sudo apt-get update (this just makes sure you have the latest package information) and then sudo apt-get install gnome or something along those lines it should be in the installer tho im checking it rn
marshal
marshalOP2y ago
i want to switch to linux right now but its 11pm and i have the server up and running i want to stress test it whilst its whilelisted but idk how
marshal
marshalOP2y ago
GitHub
GitHub - crpmax/mc-bots: A simple app used for stress testing Minec...
A simple app used for stress testing Minecraft servers with bots - GitHub - crpmax/mc-bots: A simple app used for stress testing Minecraft servers with bots
jaegyu
jaegyu2y ago
I wouldn't know either, i just run servers for a couple friends lol
marshal
marshalOP2y ago
the server runs like 5-10ms with two people on
jaegyu
jaegyu2y ago
5-10 mspt? or 5-10 ms ping?
marshal
marshalOP2y ago
whatever the gui uses mspt
jaegyu
jaegyu2y ago
is it laggy then?
marshal
marshalOP2y ago
fluctuates low no
jaegyu
jaegyu2y ago
oh wait
marshal
marshalOP2y ago
for me its perfect
jaegyu
jaegyu2y ago
brain rot
marshal
marshalOP2y ago
tps is constant 20 with 2 people on
jaegyu
jaegyu2y ago
yeah then its probably ping
marshal
marshalOP2y ago
its ping
jaegyu
jaegyu2y ago
idk what the gui says tbh
marshal
marshalOP2y ago
he lives like 30 miles away from me and he sometimes get 1000ms at spikes i think its his internet because everything is moving perfectly form e
jaegyu
jaegyu2y ago
it could be your upload speed
marshal
marshalOP2y ago
my router is dying constant disconnects recently going on for like months now
jaegyu
jaegyu2y ago
oh you're fine
marshal
marshalOP2y ago
however the pc im uising is connected to my router via ethernet
jaegyu
jaegyu2y ago
is the server box connected with a wire?
marshal
marshalOP2y ago
yeah it was probably him
jaegyu
jaegyu2y ago
probably then
marshal
marshalOP2y ago
i have th eserver backing up to a google drive via plguin too
jaegyu
jaegyu2y ago
thats smart, i was using a cron job in linux lmao its like task scheduler
marshal
marshalOP2y ago
more power to you i used to be worried about partitioning the drive because i used to uise this fabric mod that would backup the server onto the drive and the sevrer was so huge because i prelaoded like 9k blocks out its a 256gb drive so thats like 9 minecraft worlds
jaegyu
jaegyu2y ago
your worlds are 30 gigs?
marshal
marshalOP2y ago
used to be well that was when we like prerendered 9k blocks out in every cardinal direction that was fabric though
jaegyu
jaegyu2y ago
thats crazy, largest ive had was 10, but we've only had 3-5 players and we all kept close together
marshal
marshalOP2y ago
yeah people in my friend group hate each other diamonds get stolen stuff like that i have the server on a thumbdrive
jaegyu
jaegyu2y ago
yeah in modded mc resources stop mattering after the first week or so
marshal
marshalOP2y ago
u think its too late to switch to linux? u think it effects server preformance by alot?
jaegyu
jaegyu2y ago
im not too sure how the performance will be, but its never too late because minecraft uses java, and java is platform independent for the most part
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
oop, can you show me your server folder? definitely a me issue and not a you issue
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
do you have a server.jar?
marshal
marshalOP2y ago
renamed it to paper.jar and it’s paper jar in the run batch
jaegyu
jaegyu2y ago
oh, did you rename it within the script too?
marshal
marshalOP2y ago
yeah
jaegyu
jaegyu2y ago
can you go into batch and type echo %JAVA_HOME% ? or cmd not batch
marshal
marshalOP2y ago
yeah i was wondering ur asking it repeat java home
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
oh yeah hold up no, you just dont have the variable set it looks like thats fine you can just go to your search bar, type java and then hit open file location if its already in your path though, which it probably is, you can put java.exe in the script instead of anything else something like:
set "JAVA=java.exe"
marshal
marshalOP2y ago
like that?
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
oh remove set %JAVA_HOME... i think you showed that to me and i gave it the ok i dont do a whole lot of batch, and thats on me
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
no i mean the whole line sorry for not being super clear lmao
marshal
marshalOP2y ago
it works? previously okay now it works
jaegyu
jaegyu2y ago
well id remove the line even if it works
marshal
marshalOP2y ago
without saying something undefined
jaegyu
jaegyu2y ago
cool
marshal
marshalOP2y ago
strange
jaegyu
jaegyu2y ago
yeah that was mb in general, glad its working now
marshal
marshalOP2y ago
yeah so is 1gb and 6gb fine? or should i do 4gb and 6gb
jaegyu
jaegyu2y ago
either or is fine, but itll probably expand to 4 gigs anyway
marshal
marshalOP2y ago
reboot works perfectly fine that’s sweet
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
with the heap dtuff in the batch file means memory dump is lower? like how 2Pi did his mod? holy shit i just remmebered 2Pi
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
this guy before the days of clients
jaegyu
jaegyu2y ago
here is what aikar said about the option:
G1HeapRegionSize=8M+: Default is auto calculated. SUPER important for Minecraft, especially 1.15, as with low memory situations, the default calculation will in most times be too low. Any memory allocation half of this size (4MB) will be treated as “Humongous” and promote straight to old generation and is harder to free. If you allow java to use the default, you will be destroyed with a significant chunk of your memory getting treated as Humongous.
G1HeapRegionSize=8M+: Default is auto calculated. SUPER important for Minecraft, especially 1.15, as with low memory situations, the default calculation will in most times be too low. Any memory allocation half of this size (4MB) will be treated as “Humongous” and promote straight to old generation and is harder to free. If you allow java to use the default, you will be destroyed with a significant chunk of your memory getting treated as Humongous.
marshal
marshalOP2y ago
o barelt understand that if it goes over a memory threshold it will resort to old generation?
jaegyu
jaegyu2y ago
i'm not a jvm options specialist by any means, so take EVERYTHING with a grain of salt, but my understanding is that by default the jvm will set the setting too small, and the garbage collector has a harder time to free memory
marshal
marshalOP2y ago
i’m a washed up 1.8 player who enjoys survival this stuff is out of my pay grade but it’s interesting to read about it’s like reading spanish but only understanding parts of it
jaegyu
jaegyu2y ago
lmao, i still play on 1.3 and 1.4 sometimes but i've spent most of my time also in 1.8
marshal
marshalOP2y ago
pot pvp servers and hypixel took up most of my tween years
jaegyu
jaegyu2y ago
i used to blatantly hack on skywars when i was like 12
marshal
marshalOP2y ago
i remember when i was like 7 playing java because i was begging my parents for java
jaegyu
jaegyu2y ago
i didnt get banned until after I stopped playing
marshal
marshalOP2y ago
i was a mineplex kid dominate was my favorite game mode
jaegyu
jaegyu2y ago
i was a mega walls kid lmao
marshal
marshalOP2y ago
i remember the midnight release of skywars on mineplex lol i was playing minecraft on a windows 7 with an old ass radeon card quad core intel chip shit was bumping 100fps on a good day if you want i can invite you to my server i’m hosting its vanilla you seem pretty chill if you’re so enticed just a bunch of high schoolers messing around and stuff we’re waiting for one of dudes to come back from rome to hop on so we have few days
jaegyu
jaegyu2y ago
sure i've only recently graduated and i have the free time in between my self studies
marshal
marshalOP2y ago
yeah i’m the youngest in the group most of them graduated some are freshly seniors
jaegyu
jaegyu2y ago
just dm me the ip
marshal
marshalOP2y ago
its not up yet u mind a server for now?
jaegyu
jaegyu2y ago
yeah sure sorry im also walking my girlfriend through basic html/css lmao i was thinking of rhel, not ubuntu, but you can still install a desktop pretty easily still the same install process, just not in the installer
marshal
marshalOP2y ago
awel it is a distro
jaegyu
jaegyu2y ago
yeah, either ubuntu or ubuntu server are fine anything other than that and you're getting into niche territory and you wont get much help
marshal
marshalOP2y ago
bro my server just turned off to update 😭
jaegyu
jaegyu2y ago
windows??
marshal
marshalOP2y ago
yes
jaegyu
jaegyu2y ago
LMAO
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
what the fuck
jaegyu
jaegyu2y ago
YOURE PLAYING WITH ME
marshal
marshalOP2y ago
i was running test on the server and it just randomly turned off so i went downstairs
jaegyu
jaegyu2y ago
HAHAHAHAHA
marshal
marshalOP2y ago
and this bitch is updating 😭😭 you r fucking with me
jaegyu
jaegyu2y ago
windoze
marshal
marshalOP2y ago
i’m turning auto update off
jaegyu
jaegyu2y ago
L
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
windows really said
marshal
marshalOP2y ago
that’s insane
jaegyu
jaegyu2y ago
"how many updates" you dont really need to reboot linux after an update unless its a kernel update or a kernel module update, but you dont really have those unless you need gpu support
marshal
marshalOP2y ago
i turned off updates for the machine god this is telling me to install linux
jaegyu
jaegyu2y ago
i really am that guy i guess lol
marshal
marshalOP2y ago
did chatgpt write a config yml for one of the plguins
jaegyu
jaegyu2y ago
i do it sometimes usually I use it to write my structs in go I use to marshall json and yaml data into
marshal
marshalOP2y ago
TAB Configuration File Update check configuration update-check: enabled: true interval: 3600 # Check for updates every 1 hour (in seconds) Header configuration header: enabled: true text: "&bWelcome to the server!" # Customize the header text fade: enabled: true fade-in: 20 # Header fade-in time (in ticks) stay: 60 # Header stay time (in ticks) fade-out: 20 # Header fade-out time (in ticks) Footer configuration footer: enabled: true text: "&eVisit our website at example.com!" # Customize the footer text fade: enabled: true fade-in: 20 # Footer fade-in time (in ticks) stay: 60 # Footer stay time (in ticks) fade-out: 20 # Footer fade-out time (in ticks) Player list configuration player-list: refresh-interval: 5 # Refresh the player list every 5 ticks sorting-method: GROUPS # Sort players by groups group-sorting-method: DISPLAY_NAME # Sort groups by display name group-collapse-mode: EXPAND # Expand groups by default group-collapsed-groups: # List of groups to be collapsed by default - moderator - builder Tablist configuration tablist: header-footer-refresh-interval: 60 # Refresh the header and footer every 60 ticks ping-interval: 10 # Refresh player ping every 10 ticks Sidebar configuration sidebar: enabled: true title: "&6Server Stats" # Customize the sidebar title refresh-interval: 60 # Refresh the sidebar every 60 ticks lines: - "&aOnline Players: &f%online%" - "&bTPS: &f%tps%" - "&eUptime: &f%uptime%" Action bar configuration action-bar: enabled: true refresh-interval: 10 # Refresh the action bar every 10 ticks Below name configuration below-name: enabled: true health-display: PERCENTAGE # Display health as a percentage
Tab list groups configuration groups: # Define your groups and their properties here default: display-name: "&7[&fDefault&7]" permission: "group.default" priority: 0 moderator: display-name: "&c[&6Mod&c]" permission: "group.moderator" priority: 1 admin: display-name: "&4[&cAdmin&4]" permission: "group.admin" priority: 2 Placeholder API configuration placeholder-api: enabled: true cant format it correctly but heres the yml chatgpt gave me
# TAB Configuration File

# Update check configuration
update-check:
enabled: true
interval: 3600 # Check for updates every 1 hour (in seconds)

# Header configuration
header:
enabled: true
text: "&bWelcome to the server!" # Customize the header text
fade:
enabled: true
fade-in: 20 # Header fade-in time (in ticks)
stay: 60 # Header stay time (in ticks)
fade-out: 20 # Header fade-out time (in ticks)

# Footer configuration
footer:
enabled: true
text: "&eVisit our website at example.com!" # Customize the footer text
fade:
enabled: true
fade-in: 20 # Footer fade-in time (in ticks)
stay: 60 # Footer stay time (in ticks)
fade-out: 20 # Footer fade-out time (in ticks)

# Player list configuration
player-list:
refresh-interval: 5 # Refresh the player list every 5 ticks
sorting-method: GROUPS # Sort players by groups
group-sorting-method: DISPLAY_NAME # Sort groups by display name
group-collapse-mode: EXPAND # Expand groups by default
group-collapsed-groups: # List of groups to be collapsed by default
- moderator
- builder

# Tablist configuration
tablist:
header-footer-refresh-interval: 60 # Refresh the header and footer every 60 ticks
ping-interval: 10 # Refresh player ping every 10 ticks

# Sidebar configuration
sidebar:
enabled: true
title: "&6Server Stats" # Customize the sidebar title
refresh-interval: 60 # Refresh the sidebar every 60 ticks
lines:
- "&aOnline Players: &f%online%"
- "&bTPS: &f%tps%"
- "&eUptime: &f%uptime%"

# Action bar configuration
action-bar:
enabled: true
refresh-interval: 10 # Refresh the action bar every 10 ticks

# Below name configuration
below-name:
enabled: true
health-display: PERCENTAGE # Display health as a percentage
# TAB Configuration File

# Update check configuration
update-check:
enabled: true
interval: 3600 # Check for updates every 1 hour (in seconds)

# Header configuration
header:
enabled: true
text: "&bWelcome to the server!" # Customize the header text
fade:
enabled: true
fade-in: 20 # Header fade-in time (in ticks)
stay: 60 # Header stay time (in ticks)
fade-out: 20 # Header fade-out time (in ticks)

# Footer configuration
footer:
enabled: true
text: "&eVisit our website at example.com!" # Customize the footer text
fade:
enabled: true
fade-in: 20 # Footer fade-in time (in ticks)
stay: 60 # Footer stay time (in ticks)
fade-out: 20 # Footer fade-out time (in ticks)

# Player list configuration
player-list:
refresh-interval: 5 # Refresh the player list every 5 ticks
sorting-method: GROUPS # Sort players by groups
group-sorting-method: DISPLAY_NAME # Sort groups by display name
group-collapse-mode: EXPAND # Expand groups by default
group-collapsed-groups: # List of groups to be collapsed by default
- moderator
- builder

# Tablist configuration
tablist:
header-footer-refresh-interval: 60 # Refresh the header and footer every 60 ticks
ping-interval: 10 # Refresh player ping every 10 ticks

# Sidebar configuration
sidebar:
enabled: true
title: "&6Server Stats" # Customize the sidebar title
refresh-interval: 60 # Refresh the sidebar every 60 ticks
lines:
- "&aOnline Players: &f%online%"
- "&bTPS: &f%tps%"
- "&eUptime: &f%uptime%"

# Action bar configuration
action-bar:
enabled: true
refresh-interval: 10 # Refresh the action bar every 10 ticks

# Below name configuration
below-name:
enabled: true
health-display: PERCENTAGE # Display health as a percentage
# Tab list groups configuration
groups:
# Define your groups and their properties here
default:
display-name: "&7[&fDefault&7]"
permission: "group.default"
priority: 0
moderator:
display-name: "&c[&6Mod&c]"
permission: "group.moderator"
priority: 1
admin:
display-name: "&4[&cAdmin&4]"
permission: "group.admin"
priority: 2

# Placeholder API configuration
placeholder-api:
enabled: true
# Tab list groups configuration
groups:
# Define your groups and their properties here
default:
display-name: "&7[&fDefault&7]"
permission: "group.default"
priority: 0
moderator:
display-name: "&c[&6Mod&c]"
permission: "group.moderator"
priority: 1
admin:
display-name: "&4[&cAdmin&4]"
permission: "group.admin"
priority: 2

# Placeholder API configuration
placeholder-api:
enabled: true
jaegyu
jaegyu2y ago
you should wrap it in ```
marshal
marshalOP2y ago
this
this
i figured it out dyde dude'
jaegyu
jaegyu2y ago
read the response
marshal
marshalOP2y ago
ChatGPT
ChatGPT
A conversational AI system that listens, learns, and challenges
jaegyu
jaegyu2y ago
if you're looking for a more vanilla setup, lithium + starlight are closer to vanilla what plugins are you using?
marshal
marshalOP2y ago
i want the opimizations of paper whilst not breaking any auto farms but i think i can only have one chatgpt might be incredibly powerful because of the intense documentation on these on github n such
jaegyu
jaegyu2y ago
id just be hesitant i tried it on gpt3 and got straight hallucinations
marshal
marshalOP2y ago
im taking it all with a grain of salt ill wait for gpt4 if thatll ever come out to the public
jaegyu
jaegyu2y ago
i have a pro on an account but i went through my friends google account since i needed oauth and i don’t have a google account i just need to wait for him and i to be on the same sleep schedule lol
marshal
marshalOP2y ago
sounds about right for like 2 servers i had a mod that connects my console to a discord channel so i can see logs and they stay but they want to use the discord server that doesnt have that
jaegyu
jaegyu2y ago
well you can just move it over, no?
marshal
marshalOP2y ago
i have to invite a discord bot and stuff and that mod is fabric and i can live without it can always rcon
jaegyu
jaegyu2y ago
true, ive never set up rcon tbh
marshal
marshalOP2y ago
it was a little tricky for me i think i mightve forgot stuff wiht ports pretty lame networking stuff
jaegyu
jaegyu2y ago
maybe it’s paranoia, but i wouldn’t open rcon up to the public internet tbh
marshal
marshalOP2y ago
ive never been cyberattacked or hit by some script kiddie so im not really that paranoid if i want it to look professional ill use a free domain to cover up my ip lol
jaegyu
jaegyu2y ago
i would just keep rcon local
marshal
marshalOP2y ago
i dont even set up a cloudflare or anything
jaegyu
jaegyu2y ago
or something
marshal
marshalOP2y ago
yeah i used it to access my computer downstairs if im lazy
jaegyu
jaegyu2y ago
yeah, i just wouldn't open the 25566(?) port on your router
marshal
marshalOP2y ago
fair enough do u think cybersecurity in hs is a good class to take?
jaegyu
jaegyu2y ago
i took networking it was a chill class for fundamentals
marshal
marshalOP2y ago
are you going to take a class in college to build on it?
jaegyu
jaegyu2y ago
ill probably do more programming or something i've wanted to do linux sysadmin stuff but idk
marshal
marshalOP2y ago
theres a course for that? and what career would that lead into
jaegyu
jaegyu2y ago
mostly maintaining and setting up services
marshal
marshalOP2y ago
those people are worth alot right?
jaegyu
jaegyu2y ago
i never really cared tbh i just like working with linux
marshal
marshalOP2y ago
which version should i install? i installed ubuntu previously ubuntu server a good choice? okay problem i dont know how to get into the boot menu apparently i have to press F2 and F12? i reformatted my flash drive with ubuntu server again for good measure holy shut it worked i used a doffrrrnt keyboard
jaegyu
jaegyu2y ago
lmao mb bro, you could've pinged me also i never referenced todays date at all while using chatgpt, and:
jaegyu
jaegyu2y ago
No description
jaegyu
jaegyu2y ago
oh, i guess it just works that way in general? idk its wtv lmao
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
i’m going to overwrite windows on this drive or should i dual boot
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
for some reason o tried to partition it on windows and it only let me use 23gb of 256 what’s an lvl group? lvm* lwk need help in this installation @jaegyu
jaegyu
jaegyu2y ago
you can use it if you want im more familiar with a standard partition layout tho
marshal
marshalOP2y ago
should i just overwrite windows
jaegyu
jaegyu2y ago
do you have data backed up?
marshal
marshalOP2y ago
nothing i really need the server is on a thumb drive currently no loss?
jaegyu
jaegyu2y ago
you have the server and linux on the thumb drive?
marshal
marshalOP2y ago
different thumb drives
jaegyu
jaegyu2y ago
had me worried lol
marshal
marshalOP2y ago
used a 32gb for linux because less to format 64 for server and misc stuff
jaegyu
jaegyu2y ago
yeah you can check custom install and ill walk you through it
marshal
marshalOP2y ago
woudlnt entire disk do it as well?
jaegyu
jaegyu2y ago
oh yeah mb bro i misread that option
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
just uncheck lvm
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
unchecked it press done?
jaegyu
jaegyu2y ago
looks good
marshal
marshalOP2y ago
ubuntu pro? u have to pay for that?
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
you recommend this or nah?
jaegyu
jaegyu2y ago
skip it it sfine
marshal
marshalOP2y ago
openssh?
jaegyu
jaegyu2y ago
yes thats how you remote in
marshal
marshalOP2y ago
import ssh identity
jaegyu
jaegyu2y ago
nope
marshal
marshalOP2y ago
github and something else
jaegyu
jaegyu2y ago
show me?
marshal
marshalOP2y ago
launchpad github and launchpad
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
oh id do neither unless you need launchpad oh nvm im dumb yeah just skip it
marshal
marshalOP2y ago
install it or just skit up it
jaegyu
jaegyu2y ago
install openssh skip importing keys
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
you wont need any of that
marshal
marshalOP2y ago
just pressed done
jaegyu
jaegyu2y ago
thats fine is it installing now?
marshal
marshalOP2y ago
yeah it’s updating something
jaegyu
jaegyu2y ago
alr cool
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
when can i download desktop
jaegyu
jaegyu2y ago
it has to make sure it knows what the latest versions of the packages are before it installs it into the system
marshal
marshalOP2y ago
or this is the part i can leave it ahh
jaegyu
jaegyu2y ago
you can just let it install itll hang once its done
marshal
marshalOP2y ago
alright i’ll head off the gym then
jaegyu
jaegyu2y ago
cool
marshal
marshalOP2y ago
thanks btw
jaegyu
jaegyu2y ago
np bro
marshal
marshalOP2y ago
i didn’t really need anytigng on windows anyway i gotta install java and stuff again though
jaegyu
jaegyu2y ago
its easy honestly
marshal
marshalOP2y ago
sudo sometging
jaegyu
jaegyu2y ago
just sudo apt-get update and sudo apt-get install openjdk-17-jre-headless yeah
marshal
marshalOP2y ago
i personally like the gui with running the server ram usage and stuff yk
jaegyu
jaegyu2y ago
you can screen it away, then run htop or install spark profiler and use the web interface
marshal
marshalOP2y ago
spark is for paper?
jaegyu
jaegyu2y ago
oooo
jaegyu
jaegyu2y ago
No description
jaegyu
jaegyu2y ago
you have a bukkit plugin, it should work?
marshal
marshalOP2y ago
yeah paper spigot bukkit r the same thing
jaegyu
jaegyu2y ago
yeah, i didnt know how up-to-date spigot keeps to the bukkit source tree
marshal
marshalOP2y ago
i would need to navigate this without a desktop
jaegyu
jaegyu2y ago
you can install one ontop of the server
marshal
marshalOP2y ago
alright got it
jaegyu
jaegyu2y ago
i have a vm running and im just double checking the commands so im not shooting in the dark later
marshal
marshalOP2y ago
it would just have absolutely nothing on it
jaegyu
jaegyu2y ago
there's a meta package that has a full desktop, i usually just do a minimal install tho
marshal
marshalOP2y ago
ssh would let me view the server from my computer right?
jaegyu
jaegyu2y ago
yeah just ssh user@ip
marshal
marshalOP2y ago
cmd?
jaegyu
jaegyu2y ago
powershell i dont know if window's ssh is available in cmd ill check rn
jaegyu
jaegyu2y ago
No description
jaegyu
jaegyu2y ago
it is oh wait my cmd opens powershell? no im just stupid its cmd heres the set of commands you'd need to install a desktop: Full desktop: sudo bash -c "apt-get update && apt-get install gnome gdm3" Minimal desktop: sudo bash -c "apt-get update && apt-get install gnome-session gdm3" After either: sudo systemctl enable --now gdm you'll have your gui to work with after
marshal
marshalOP2y ago
wait i’m so confused
jaegyu
jaegyu2y ago
what do you mean?
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
it told me to remove the usb
jaegyu
jaegyu2y ago
oh go into your bios it probably doesnt have the right drive
marshal
marshalOP2y ago
it should overwrite the drive with windows right okay so i clicked ubuntu in boot drives
jaegyu
jaegyu2y ago
yeah, but it could change the EFI drive id and your bios might not pick it up automatically
marshal
marshalOP2y ago
i think i’m in the server
jaegyu
jaegyu2y ago
okay so if you want a desktop
marshal
marshalOP2y ago
yes
jaegyu
jaegyu2y ago
these commands choose between one of the first two thats all good i would suggest deleting that tho
marshal
marshalOP2y ago
i’m so confused
jaegyu
jaegyu2y ago
you pretty much leaked your private ssh key lol
marshal
marshalOP2y ago
it won’t type anything whoops!
jaegyu
jaegyu2y ago
haha you're good anyway, linux doesnt show your password when you type it nor will it show *'s by default just hit backspace a bunch of times and type with confidence lol
marshal
marshalOP2y ago
ohh that’s a curveball
jaegyu
jaegyu2y ago
i'd still delete this image lol
marshal
marshalOP2y ago
okay i think i’m on the the main “desktop”
jaegyu
jaegyu2y ago
yeah the cli now just punch the commands in and you'll be solid
marshal
marshalOP2y ago
and that’s my ip
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
device ip actually
jaegyu
jaegyu2y ago
private yeah
marshal
marshalOP2y ago
difference between full and minimal
jaegyu
jaegyu2y ago
ill show you what apps minimal has
marshal
marshalOP2y ago
like what has what features alright
jaegyu
jaegyu2y ago
No description
jaegyu
jaegyu2y ago
so not a whole lot just the very bare minimum if you want more than that you can just install the full one
marshal
marshalOP2y ago
not much in preformance? can i still install chrome n stuff
jaegyu
jaegyu2y ago
yeah, but honestly its just a difference in how much diskspace you'll end up using between full and minimal
marshal
marshalOP2y ago
abb
jaegyu
jaegyu2y ago
i dont even use a desktop, so 90% of what you'd need would be in the terminal
marshal
marshalOP2y ago
1,915mb is used so not a lot
jaegyu
jaegyu2y ago
hold up
marshal
marshalOP2y ago
god linux server without desktop is so lifeless
jaegyu
jaegyu2y ago
well its about running server stuff
marshal
marshalOP2y ago
yeah i know
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
is that full or minimal? btw, im the only person who makes this distinction, so dont get too confused
marshal
marshalOP2y ago
full
jaegyu
jaegyu2y ago
thats fine, i just didnt want to assume and be confused later
marshal
marshalOP2y ago
it just got done installing firefox and now it’s going to toen town
jaegyu
jaegyu2y ago
thats usually how it goes lol browsers and the core desktop are like 80% of the install
marshal
marshalOP2y ago
it stopped
No description
jaegyu
jaegyu2y ago
thats fine now run sudo systemctl enable --now gdm and you should pop into a desktop as long as i didnt get confused with something because that was a fast install
marshal
marshalOP2y ago
systemct1
jaegyu
jaegyu2y ago
l
marshal
marshalOP2y ago
or systemctl
jaegyu
jaegyu2y ago
Lerry ctl for control
marshal
marshalOP2y ago
oh i’m in a desktop
jaegyu
jaegyu2y ago
W in chat you're good now whenever you reboot it should load into the desktop
marshal
marshalOP2y ago
the cursor is a swuare#
jaegyu
jaegyu2y ago
hold up
marshal
marshalOP2y ago
time to install java?
jaegyu
jaegyu2y ago
can you screenshot?
marshal
marshalOP2y ago
the cursor changes to a regular cursor in terminal and a swuare
jaegyu
jaegyu2y ago
oh yeah in terminal yeah
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
my screen is blurry because i’m using vga
jaegyu
jaegyu2y ago
oh weird 🤔
marshal
marshalOP2y ago
last minute solutions
jaegyu
jaegyu2y ago
either way its only a server, you shouldnt be on the gui side too often imo
marshal
marshalOP2y ago
i literally just took a fell optiplex shoved it in the router room and connected it via ethernet lol what’s the command to install java?
jaegyu
jaegyu2y ago
sudo apt-get install openjdk-17-jre-headless if you want the gui sudo apt-get install openjdk-17-jre
marshal
marshalOP2y ago
is it .bat for linux too?
jaegyu
jaegyu2y ago
no ill get you set up in a sec
marshal
marshalOP2y ago
i’m hoping the way to get device ip on ubuntu is the same as the desktop
jaegyu
jaegyu2y ago
okay run curl -o start.sh https://gist.githubusercontent.com/3AM-Developer/4f2706664dfd762f52903e50414928e3/raw
marshal
marshalOP2y ago
i was wondering why android marshmallow looked so much like linux and i realized android is a linux distributor
jaegyu
jaegyu2y ago
haha yeah a little bit start.sh
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
oh ik what i did wrong i put run
jaegyu
jaegyu2y ago
lmao you're okay
marshal
marshalOP2y ago
speed upload did stuff like that it connected to a github project ?
jaegyu
jaegyu2y ago
oh, thats my github i uploaded the script so you didnt have to manually type it all out
marshal
marshalOP2y ago
ohh so i make a start sh file and type that script?
jaegyu
jaegyu2y ago
it should download it to where you were in the shell you can find where you are using pwd
marshal
marshalOP2y ago
found it
jaegyu
jaegyu2y ago
and if you want to see if the file is there you can use ls to see what files and folders are in the directory where you are
marshal
marshalOP2y ago
trying to find what my device ip is
jaegyu
jaegyu2y ago
if you want to find local ip you can use ip a
marshal
marshalOP2y ago
is there a ip config linux ? ohh okay how do i make it static?
jaegyu
jaegyu2y ago
you can either do it in your router, or locally give me 2 seconds if you want to do it locally
marshal
marshalOP2y ago
i only know how to do it locally 😭
jaegyu
jaegyu2y ago
well give me a second and ill help you out ok ok
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
so can you show me what ip a shows
marshal
marshalOP2y ago
sending
jaegyu
jaegyu2y ago
all good
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
okay so do sudo nano /etc/netplan/01-static-ethernet.yaml then type this out
network:
version: 2
renderer: NetworkManager
ethernets:
enp2s0:
dhcp4: no
addresses: [192.168.1.173/24] # change everything before the /24 to what you want your ip to be
gateway4: [192.168.1.1]
nameservers: [8.8.8.8, 8.8.4.4]
network:
version: 2
renderer: NetworkManager
ethernets:
enp2s0:
dhcp4: no
addresses: [192.168.1.173/24] # change everything before the /24 to what you want your ip to be
gateway4: [192.168.1.1]
nameservers: [8.8.8.8, 8.8.4.4]
marshal
marshalOP2y ago
does formatting matter
jaegyu
jaegyu2y ago
you can do either 2 or 4 spaces for indentation, but it needs to be consistent then when you're done do ctrl-x, then press y, then press enter
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
i fixed thst error ik whst ur going to say
jaegyu
jaegyu2y ago
you can change the ip address within the brackets idk what you usually use as a static ip just leave the /24 at the end
marshal
marshalOP2y ago
i’ll use the one the system is using now would it conflict if i accidentally changed it another systems ip?
jaegyu
jaegyu2y ago
uh, 🤷‍♂️
marshal
marshalOP2y ago
how do i execute this ^T?
jaegyu
jaegyu2y ago
did you fix the [../24] being on a new line?
marshal
marshalOP2y ago
it is?
jaegyu
jaegyu2y ago
no, its not supposed to
jaegyu
jaegyu2y ago
No description
jaegyu
jaegyu2y ago
should look like that i just wanna make sure everything is good
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
either way, ctrl+x, hit y, hit enter and yeah, can you go to the start of the line, and hit backspace? so your line looks like addresses: [.../24]?
marshal
marshalOP2y ago
like this?
marshal
marshalOP2y ago
marshal
marshalOP2y ago
i’m using my brothers mk blue keyboard lol it looks correct?
jaegyu
jaegyu2y ago
idk how to explain it better but your [192.168.1.173/24] is on a new line, when it should come just after addresses: within the same line
marshal
marshalOP2y ago
OHH
jaegyu
jaegyu2y ago
haha, you should delete that screenshot too
marshal
marshalOP2y ago
i’m going to be retyping this entire thing arent i
jaegyu
jaegyu2y ago
open it up you saved it as long as you did the key inputs right . is there a normal text editor? you can install vs code on there
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
whenever i type my password it says command not found oh wait it just sends me back
jaegyu
jaegyu2y ago
the last 4 should all have the same indentation
marshal
marshalOP2y ago
they do if i’m correct
jaegyu
jaegyu2y ago
okay, it just looks weird do this again then sudo netplan try
marshal
marshalOP2y ago
error in network definition
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
oh im an ape remove the brackets
marshal
marshalOP2y ago
everywhere?
jaegyu
jaegyu2y ago
just on that line
marshal
marshalOP2y ago
/24? oh wait i see it
jaegyu
jaegyu2y ago
no, the gateway4 line scalar means one value and [] tells it that you're making a list so its like, why tf are there multiple values when i only need one lol
marshal
marshalOP2y ago
i think i fucked something up
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
where? it looks fine to me
marshal
marshalOP2y ago
it gave me no output
jaegyu
jaegyu2y ago
oh thats normal just do sudo netplan try again
marshal
marshalOP2y ago
oh i got a warning
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
it switched back to default routes it’s probably me
jaegyu
jaegyu2y ago
no, im just havent set up a static ip in a while and used old syntax also i do think your last 2 lines are indented a little too much
marshal
marshalOP2y ago
i fixed that
jaegyu
jaegyu2y ago
but you should replace gateway4 with this:
marshal
marshalOP2y ago
this is beyond my knowledge around about the installation
jaegyu
jaegyu2y ago
you're okay we're getting there
marshal
marshalOP2y ago
routes route to and via?
jaegyu
jaegyu2y ago
network:
version: 2
renderer: NetworkManager
ethernets:
enp2s0:
dhcp4: no
addresses: [192.168.1.173/24] # change everything before the /24 to what you want your ip to be
routes:
- to: default
via: 192.168.1.1
nameservers: [8.8.8.8, 8.8.4.4]
network:
version: 2
renderer: NetworkManager
ethernets:
enp2s0:
dhcp4: no
addresses: [192.168.1.173/24] # change everything before the /24 to what you want your ip to be
routes:
- to: default
via: 192.168.1.1
nameservers: [8.8.8.8, 8.8.4.4]
updated yaml you just need to remove gateway4 and replace it with that
marshal
marshalOP2y ago
o think we’re on the same stack exchange forum
jaegyu
jaegyu2y ago
lmao yeah probably that routes tag would be really nice when setting up my windows box instead i have to manually set the routes on my machine and its rough
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
barely understood but that sounds gruesome expected mapping it’s indentation
jaegyu
jaegyu2y ago
do your to and via have colons?
marshal
marshalOP2y ago
colons?
jaegyu
jaegyu2y ago
its a little blurry but if they do then you're good liek via: 192.. does your via have : after it
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
looks good exit, then sudo netplan try
marshal
marshalOP2y ago
invalid yaml block sequence entries are not allowed in this context
jaegyu
jaegyu2y ago
oh, it looks like your - is on the routes line
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
where is it supposed to be?
jaegyu
jaegyu2y ago
it should be
routes:
- to: default
routes:
- to: default
frankly you're doing well not getting frustrated, id be sobbing right now lmao
marshal
marshalOP2y ago
No description
No description
marshal
marshalOP2y ago
IDK WHER THE - GOES
jaegyu
jaegyu2y ago
via isnt indented enough yaml is very picky with indentation
marshal
marshalOP2y ago
idk i was fustrated when i couldn’t go into my bios and after an hour and changed my keyboard it got me into bios 😭
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
now? oh my fod there’s a problem in the dns
jaegyu
jaegyu2y ago
is it the space?
marshal
marshalOP2y ago
i’m seriously at a loss there’s a space?
jaegyu
jaegyu2y ago
between your comman and your 8 that was me though, it was a muscle memory thing
marshal
marshalOP2y ago
?4/,&35 and 8? bracket and 8?
jaegyu
jaegyu2y ago
comma like
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
yeah.
jaegyu
jaegyu2y ago
go to the end of that address theres a comma after the comma theres a space delete that space
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
that has to work
marshal
marshalOP2y ago
it’s the bracket
jaegyu
jaegyu2y ago
oh you're right
marshal
marshalOP2y ago
No description
marshal
marshalOP2y ago
but it’s a list?
jaegyu
jaegyu2y ago
nameservers:
addresses: [8.8.8.8,8.8.4.4]
nameservers:
addresses: [8.8.8.8,8.8.4.4]
they've changed the layout a bit
marshal
marshalOP2y ago
aliases are not supported there’s a space?
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
can you show me your yaml it's probably easier to use something like vs code
marshal
marshalOP2y ago
downloading
jaegyu
jaegyu2y ago
here do it like this: wait, did you get it from the site?
jaegyu
jaegyu2y ago
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
jaegyu
jaegyu2y ago
if you did thats fine
marshal
marshalOP2y ago
yeah there
jaegyu
jaegyu2y ago
yeah, then open your downloads in a terminal and run sudo apt install <file>.deb
marshal
marshalOP2y ago
open my downloads in a terminal?
jaegyu
jaegyu2y ago
no, it should open in a folder if you want to open it in a terminal you can run cd ~/Downloads
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
im like 90% sure
marshal
marshalOP2y ago
next?
jaegyu
jaegyu2y ago
type sudo apt install code and then hit tab to auto fill the rest of it dont put a space after code
marshal
marshalOP2y ago
snap isn’t all code? snap install code?*
jaegyu
jaegyu2y ago
sudo apt i guess you could do snap too though
marshal
marshalOP2y ago
it said it couldn’t find code
jaegyu
jaegyu2y ago
i was asking you to type code into the terminal, then hit tab after
marshal
marshalOP2y ago
wha
jaegyu
jaegyu2y ago
if you dont put a space it should fill in the full file name
marshal
marshalOP2y ago
No description
jaegyu
jaegyu2y ago
heres what i mean
marshal
marshalOP2y ago
unable to locate package code
jaegyu
jaegyu2y ago
wait, do you want to vc?
marshal
marshalOP2y ago
i don’t mind
jaegyu
jaegyu2y ago
i can probably explain it a little better through voice
marshal
marshalOP2y ago
i’m on my phone
jaegyu
jaegyu2y ago
thats fine
marshal
marshalOP2y ago
alright
jaegyu
jaegyu2y ago
sudo curl -Lo /etc/netplan/01-static-ethernet.yaml https://tinyurl.com/netplanurlthing

Did you find this page helpful?