This Bash script is designed to automate the installation and configuration of various packages on a Unix-like system. It checks for the availability of the package manager (pkg
), upgrades system packages, installs the x11-repo
package repository, and installs specific packages such as openssl-1.1
, tigervnc
, xfce4
, firefox
, and xterm
.
- pkg Package Manager: Ensure that the
pkg
package manager is installed on your system.
-
Clone the repository:
git clone https://github.com/Ari131B/firefox.git
-
Navigate to the script directory:
cd firefox
-
Make the script executable:
chmod +x start
chmod +x stop
chmod +x run.sh
-
Run the script:
./run.sh
-
Check pkg Availability:
- The script verifies if the
pkg
package manager is available.
- The script verifies if the
-
Upgrade System Packages:
- It upgrades system packages using
pkg
.
- It upgrades system packages using
-
Install x11-repo Package Repository:
- The script installs the
x11-repo
package repository usingpkg
.
- The script installs the
-
Show Information about openssl Package:
- Displays information about the
openssl
package.
- Displays information about the
-
Install openssl-1.1 Package:
- Installs the
openssl-1.1
package usingpkg
.
- Installs the
-
Install Additional Packages:
- Installs
tigervnc
,xfce4
,firefox
, andxterm
packages.
- Installs
-
Set DISPLAY Environment Variable:
- Sets the
DISPLAY
environment variable to the VNC server display.
- Sets the
-
Run Additional Commands or Configurations:
- Custom commands or configurations can be added after setting the
DISPLAY
.
- Custom commands or configurations can be added after setting the
-
Install Packages via Alternative Package Manager:
- The script provides a function (
install_package
) for installing a package using an alternative package manager.
- The script provides a function (
./run.sh