https://github.com/cristidraghici/debian-server-bash-scripts
Some scripts to help with tasks on a Debian server
https://github.com/cristidraghici/debian-server-bash-scripts
Last synced: 3 months ago
JSON representation
Some scripts to help with tasks on a Debian server
- Host: GitHub
- URL: https://github.com/cristidraghici/debian-server-bash-scripts
- Owner: cristidraghici
- Created: 2023-11-25T07:35:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-26T19:58:30.000Z (over 1 year ago)
- Last Synced: 2023-11-27T08:29:53.876Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# debian-server-bash-scripts
> Some scripts to help with tasks on a Debian server
## Running the scripts
The safest way to run a script on your server is by downloading it and then inspecting the source code:
1. `wget https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/add_sudoer_with_ssh.sh`
2. `cat add_sudoer_with_ssh.sh`
3. `chmod +x add_sudoer_with_ssh.sh`
4. `sudo ./add_sudoer_with_ssh.sh` # make sure not to abuse `sudo`You can also make the scripts available for every user in the system:
1. `wget https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/add_sudoer_with_ssh.sh`
2. `mv add_sudoer_with_ssh.sh /usr/local/bin/add_sudoer_with_ssh.sh`
3. `chmod a+x /usr/local/bin/add_sudoer_with_ssh.sh`## The fast way
Even if less safe, the faster way is to download and run the scripts in the same command:
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/add_sudoer_with_ssh.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_antigen.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_composer.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_nvm.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_wp_cli.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_wp.sh | sudo bash`
- `wget -q -O - https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/enable_php_extension.sh | sudo bash`You can also have shorthands for creating the system wide available commands:
- `sudo wget -O /usr/local/bin/install_antigen https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_antigen.sh && sudo chmod +x /usr/local/bin/install_antigen`
- `sudo wget -O /usr/local/bin/install_composer https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_composer.sh && sudo chmod +x /usr/local/bin/install_composer`
- `sudo wget -O /usr/local/bin/install_nvm https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_nvm.sh && sudo chmod +x /usr/local/bin/install_nvm`
- `sudo wget -O /usr/local/bin/install_wp_cli https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_wp_cli.sh && sudo chmod +x /usr/local/bin/install_wp_cli`
- `sudo wget -O /usr/local/bin/install_wp https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/install_wp.sh && sudo chmod +x /usr/local/bin/install_wp`
- `sudo wget -O /usr/local/bin/enable_php_extension https://raw.githubusercontent.com/cristidraghici/debian-server-bash-scripts/master/enable_php_extension.sh && sudo chmod +x /usr/local/bin/enable_php_extension`