Mega Scripts Install

Description

How to install Mega Scripts on your system.


It is imperative that all scripts be installed in the same directory. I recommend "/usr/local/bin/".


Clone ( use https option ) or download the files from Github to a separate directory on you computer. Next copy the sh files to "/usr/local/bin/"


# cd ~
# mkdir scripts
#cd scripts
root@bbserver:~/scripts# git clone 'https://github.com/Amourspirit/mega_scripts.git'
Cloning into 'mega_scripts'...
remote: Counting objects: 256, done.
remote: Compressing objects: 100% (175/175), done.
Receiving objects: 100% (256/256), 385.90 KiB | 0 bytes/s, done.
remote: Total 256 (delta 113), reused 215 (delta 72), pack-reused 0
Resolving deltas: 100% (113/113), done.

# cd mega_scripts


or without git installed


# cd ~
# mkdir scripts
#cd scripts
root@bbserver:~/scripts# wget 'https://github.com/Amourspirit/mega_scripts/archive/master.zip'
--2018-06-10 11:32:40--  https://github.com/Amourspirit/mega_scripts/archive/master.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Amourspirit/mega_scripts/zip/master [following]
--2018-06-10 11:32:45--  https://codeload.github.com/Amourspirit/mega_scripts/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16214 (16K) [application/zip]
Saving to: ‘master.zip’

master.zip                             100%[============================================================================>]  15.83K  --.-KB/s    in 0.06s

2018-06-10 11:32:51 (267 KB/s) - ‘master.zip’ saved [16214/16214]

root@bbserver:~/scripts# unzip master.zip
Archive:  master.zip
8009791dfed2b581868a758610a7cd7c6463e285
  creating: mega_scripts-master/
 inflating: mega_scripts-master/LICENSE
 inflating: mega_scripts-master/mega_db_save_upload.sh
 inflating: mega_scripts-master/mega_del_old.sh
 inflating: mega_scripts-master/mega_dir_file_exist.sh
 inflating: mega_scripts-master/mega_mkdir.sh
 inflating: mega_scripts-master/mega_upload_file.sh
root@bbserver:~/scripts# ls
master.zip  mega_scripts-master
root@bbserver:~/scripts# cd mega_scripts-master/
root@bbserver:~/scripts/mega_scripts-master#


Set the chmod to 755 for all of the .sh files.


root@bbserver:~/scripts/mega_scripts-master# chmod 0755 *.sh


Now copy the files to "/usr/local/bin/" prefixing cp with \ incase there is a alias


root@bbserver:~/scripts/mega_scripts-master# \cp -f *.sh /usr/local/bin/


Edit / Create Configuration file for your current server


Related

Getting Started

Edit / Create Configuration file