F5F Stay Refreshed Software Operating Systems Set up Commands as default on boot for Raspberry Pi OS.

Set up Commands as default on boot for Raspberry Pi OS.

Set up Commands as default on boot for Raspberry Pi OS.

Pages (2): 1 2 Next
R
RHINOncg2000
Member
162
09-27-2023, 04:52 PM
#1
You can set up a script that runs commands sequentially during startup. Use a cron job or a systemd timer to trigger the command at the desired time (around 00:00). The command `cd /home/pi/MinecraftServer export PATH=$PWD/jdk-16.0.1+4/bin:$PATH java -Xmx2500M -Xms2500M -jar server.jar nogui` will execute it once per reboot or at the specified schedule.
R
RHINOncg2000
09-27-2023, 04:52 PM #1

You can set up a script that runs commands sequentially during startup. Use a cron job or a systemd timer to trigger the command at the desired time (around 00:00). The command `cd /home/pi/MinecraftServer export PATH=$PWD/jdk-16.0.1+4/bin:$PATH java -Xmx2500M -Xms2500M -jar server.jar nogui` will execute it once per reboot or at the specified schedule.

S
Sarluc
Junior Member
42
09-27-2023, 11:42 PM
#2
Assume the RPi uses Nano as a terminal-based text editor. Open the terminal first. Then execute the steps: open nano /etc/rc.local, move to the bottom of the file, add your commands before the final exit, and save. For rebooting later, I’m not certain about the timing.
S
Sarluc
09-27-2023, 11:42 PM #2

Assume the RPi uses Nano as a terminal-based text editor. Open the terminal first. Then execute the steps: open nano /etc/rc.local, move to the bottom of the file, add your commands before the final exit, and save. For rebooting later, I’m not certain about the timing.

S
ShadehaterHD
Member
91
09-28-2023, 12:39 AM
#3
RpIs are everywhere, making it easy to find detailed information online. I regularly update my RPi with OpenSSH patches and standard package upgrades through automated methods. Just search for the right details and adapt them to your requirements.
S
ShadehaterHD
09-28-2023, 12:39 AM #3

RpIs are everywhere, making it easy to find detailed information online. I regularly update my RPi with OpenSSH patches and standard package upgrades through automated methods. Just search for the right details and adapt them to your requirements.

M
Mitch_plays_mc
Junior Member
15
09-29-2023, 09:11 PM
#4
Thanks a lot, I plan to try it out once I get back. I believe I can manage it in a few sessions.
M
Mitch_plays_mc
09-29-2023, 09:11 PM #4

Thanks a lot, I plan to try it out once I get back. I believe I can manage it in a few sessions.

D
doglover4421
Member
112
09-30-2023, 12:27 AM
#5
thx
D
doglover4421
09-30-2023, 12:27 AM #5

thx

N
NooLele
Posting Freak
847
09-30-2023, 02:04 AM
#6
It refused to preserve
N
NooLele
09-30-2023, 02:04 AM #6

It refused to preserve

H
124
09-30-2023, 09:33 AM
#7
Use sudo when writing to those files. If there’s an error or unfamiliar input, it might cause problems. Be cautious with sudo and always keep a backup of the SD card.
H
HelloItsMeDaro
09-30-2023, 09:33 AM #7

Use sudo when writing to those files. If there’s an error or unfamiliar input, it might cause problems. Be cautious with sudo and always keep a backup of the SD card.

R
Robx_33
Member
141
10-01-2023, 10:52 PM
#8
The log interface is available, but it isn't visible by default. You can access it through the appropriate settings or menu options.
R
Robx_33
10-01-2023, 10:52 PM #8

The log interface is available, but it isn't visible by default. You can access it through the appropriate settings or menu options.

C
Champion2103
Member
80
10-07-2023, 01:38 AM
#9
The log interface? That's what you're referring to. What are you trying to understand?
C
Champion2103
10-07-2023, 01:38 AM #9

The log interface? That's what you're referring to. What are you trying to understand?

C
CandyGirl07
Member
54
10-07-2023, 04:07 AM
#10
Executes the Java application with specified memory limits, launching an open terminal and displaying server activity.
C
CandyGirl07
10-07-2023, 04:07 AM #10

Executes the Java application with specified memory limits, launching an open terminal and displaying server activity.

Pages (2): 1 2 Next