After booting I have to type in several commands to be executed as root. I'd like to make this a bit easier via script, but I don't know how![]()
By the way, what means shell, bash etc?
After booting I have to type in several commands to be executed as root. I'd like to make this a bit easier via script, but I don't know how![]()
By the way, what means shell, bash etc?
bash is a shell.
and a shell (there are several zsh, ch, csh, ash to name a few) is what interprets your typed comands and pass them down to the next level of operation.
by the way, what comands are they, this might make helping you easyer.
The comands are like
wlanctl-ng wlan0 lnxreq...
ifconfig wlan0 ...
route gw...
etc.
I put the lines in a file, name the ending .sh and mark it executable. When I try to run the script nothing happens. I have to copy the lines and paste them into the console, after switching to root.
By the way... How can I access another resource over the network?
The comands are like
wlanctl-ng wlan0 lnxreq...
ifconfig wlan0 ...
route gw...
etc.
I put the lines in a file, name the ending .sh and marked it executable. When I try to run the script nothing happens. I have to copy the lines and paste them into the console, after switching to root.
By the way... How can I access another resource over the network?
This was the best, and lightest tutorial I could find ( I even bookmarked for myself )
http://supportweb.cs.bham.ac.uk/docu...scripting.html
The 3rd paragraph under the topic "Shell Scripting" may have the answer you're looking for.
You need to specify the shell (interpreter) in the 1st line of the script.

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$115.00
Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive β Latest September 2026
$12.99
ESET Server Security (File Security) | Variant Item | Download Version
$136.15
All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95
Start9 Server Pure 32GB 4TB Intel i7 Node StartOS β Box + PSU
$649.00
Microsoft SQL Server 2022 Standard 24 Core unlimited CAL Retail License Package
$199.00
Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) -
$60.00
1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server
$109.99
Red Hat Enterprise Linux 5 Server DVD English OS Media Kit RHF0382US
$41.30
Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay
$500.00