Added Readme and Updated Scripts

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2022-03-24 14:53:36 +05:30
parent 13829816c0
commit 5ce18d359f
4 changed files with 69 additions and 7 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2022 Jyotirmoy BAndyopadhayaya
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

27
README.md Normal file
View File

@ -0,0 +1,27 @@
# Oracle Server Initializer Script
These are List of script in order setup your Orace Server for Open Use
## Platforms and Software's being installed :-
- [CloudPanel](https://cloudpanel.io)
- [Docker](https://docker.com)
- [Docker Compose](https://docs.docker.com/compose/)
- [Gitea](https://gitea.io)
- [Snapcraft](https://snapcraft.io)
- [Bpytop](https://github.com/aristocratos/bpytop)
- [Portainer](https://www.portainer.io/)
## OS Installer/Reinstaller to `Debian`
- [DebI](https://github.com/bohanyang/debi/)
## Order of installation
1. [`startup.sh`](startup.sh) -> Installs Debian 10
2. [`installer.sh`](installer.sh) -> Installs all Softwares and it's Dependencies
3. [`open-network.sh`](open-network.sh) -> All Internal Network Ports and for ingress and exgress communication
## License
All Softwares mentioned here are licensed by their respective owners. This Repository is licensed under the MIT License.

View File

@ -3,7 +3,9 @@
## Installing Cloudpanel
echo "Installing Cloudpanel ..."
apt update && apt -y upgrade && apt -y install curl wget sudo
echo "Installed Dependencies ..."
curl -sSL https://installer.cloudpanel.io/ce/v1/install.sh | sudo bash
echo "Installed Cloudpanel ..."
## Installing Docker
echo "Installing Docker ..."
@ -12,29 +14,36 @@ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
echo "\n"
apt-get update -y
apt-get install docker-ce docker-ce-cli containerd.io -y
echo "Installed Docker ..."
## Installing docker-compose
echo "Installing docker-compose ..."
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo "Installed docker-compose ..."
## Installing Portainer
echo "Installing Portainer ..."
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest
echo "\n"
## Installing Gitea
echo "Installing Gitea ..."
git clone https://github.com/BRAVO68WEB/gitea-installer
cd gitea-installer
bash ./gitea-installer-en.sh
echo "Installed Gitea ..."
## Configure Git
echo "Configure Git ..."
git config --global user.name "username"
git config --global user.email "your@email.net"
echo "Configuring Git ..."
read -p "Enter your git username: " git_username
read -p "Enter your git email: " git_email
git config --global user.name "$git_username"
git config --global user.email "$git_email"
## Insatll basic npm packages
echo "Insatll basic npm packages ..."
@ -42,5 +51,8 @@ yarn global add nodemon
## Install snapcraft
echo "Install snapcraft ..."
apt install snapd
apt install snapd -y
## Install Bpytop
echo "Install Bpytop ..."
snap install bpytop

View File

@ -3,6 +3,8 @@
echo "Installing Debian 10 over current OS"
sudo apt install curl -y
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
sudo ./debi.sh --version 10 --user root --password "N8@bJggX%fdsJG"
read -p "Enter your password: " password
sudo ./debi.sh --version 10 --user root --password "$password"
echo "Ready to restart"
sudo shutdown -r now