This script provides the user with a menu with various functions that they can select. Each function is implemented as a separate function in the script. The user can select one of the functions, enter the necessary data (if required), and the script will perform the appropriate operation.
check_disks
- checking all disksget_uuid
- getting the UUID of the diskget_external_ip
- getting the external IP address of the PCcreate_raid
- creating a RAID from the specified disksremove_raid
- removing the RAIDdo_traceroute
- execution of the traceroute to the specified IP or hostupdate_system
- system update in hidden modeinstall_program
- search for the program in the system repositories and install it with dependencies
To use the script, follow these steps:
- Copy the contents of the script to a file with the extension
.sh
. - Change the file access rights so that it can be executed:
chmod +x script.sh
. - Run the script:
./script.sh
. - Select the desired function from the menu.
- This script is intended for use on Linux systems.
- Some functions require superuser privileges (
sudo
). - Some functions may require user input.
- When using the
update_system
function, the script automatically installs all available updates without requesting confirmation. - The
install_program
function uses theapt-get
package manager to install programs from the official Ubuntu repositories.
The script is distributed under the MIT License.