diff --git a/README.md b/README.md index 72025ed..4844226 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ Ready to join the conversation? Here's how to install **NNOS**: ```bash nnos --shutdown ``` +8. NNOS can install your favorite packages using NNPM (Nathan Network Package Manager) + ```bash + nnos -p + ``` # On Windows 1. [Download NNOS for Windows] (https://github.com/Natuworkguy/NNOS/tree/2.4.4/win) 2. Download run.bat diff --git a/linux/nnos b/linux/nnos index 1e2cc76..cbf263a 100755 --- a/linux/nnos +++ b/linux/nnos @@ -30,8 +30,15 @@ if [ "$(cat /var/nnos/binarystorage/installed)" == "1" ]; then ;; --help) help + exit 1 + ;; + -p) + nnpm exit 0 ;; + --hello) + toilet "hello!" + ;; *) echo "Usage: nnos: " exit 1 @@ -41,13 +48,21 @@ else case "$OPTION" in --install) echo "1" > /var/nnos/binarystorage/installed + apt install apache2 + apt install toilet + apt install python3 + apt install lolcat + wget http://downloads.nathannetwork.com/m/nnos/nnpm/nnpm + mv nnpm /bin/ + apt update + apt upgrade mv "$0" /usr/bin/ chmod +x $0 echo "To use NNOS, call the $(basename $0) command anytime." exit 0 ;; *) - echo "Usage: nnos: " + echo "NNOS is not installed. Use nnos --install to install NNOS" exit 1 ;; esac