https://github.com/studiole/bash
Simple Bash scripts
https://github.com/studiole/bash
bash cli debian shell ubuntu
Last synced: 3 months ago
JSON representation
Simple Bash scripts
- Host: GitHub
- URL: https://github.com/studiole/bash
- Owner: StudioLE
- License: mit
- Created: 2023-08-03T09:11:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-17T10:54:51.000Z (over 2 years ago)
- Last Synced: 2024-02-17T11:41:23.512Z (over 2 years ago)
- Topics: bash, cli, debian, shell, ubuntu
- Language: Shell
- Homepage: http://bash.studiole.uk/
- Size: 84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Bash Scripts
Simple Bash scripts to improve the CLI experience. Primarily developed for Ubuntu 22.04 but likely compatible with other Debian distros.
*You should never trust scripts you aren't familiar with. Piping straight to bash is unsafe.*
*tl;dr: You probably shouldn't use these scripts unless you wrote them yourself.*
### [disable-motd](https://github.com/StudioLE/Bash/blob/main/disable-motd)
Disable the most verbose parts of Ubuntu's default the Message of the Day (MOTD) displayed on login.
```bash
# Run
curl -fsS https://bash.studiole.uk/disable-motd | sudo bash
# Check MOTD
run-parts /etc/update-motd.d
```
### [motd-hostname](https://github.com/StudioLE/Bash/blob/main/motd-hostname)
Add a stylised ANSI artwork of the hostname to the Message of the Day (MOTD) displayed on login.
```bash
# Install figlet
curl -fsS https://install.studiole.uk/figlet | sudo bash
# Install motd-hostname
curl -fsS https://install.studiole.uk/motd-hostname | sudo bash
# Check MOTD
run-parts /etc/update-motd.d
```
### [motd-system](https://github.com/StudioLE/Bash/blob/main/motd-system)
Add a simple compact snapshot of system resource use to the Message of the Day (MOTD) displayed on login. Showing CPU, Memory, Disk, Swap
```bash
# Install
curl -fsS https://install.studiole.uk/motd-system | sudo bash
# Check MOTD
run-parts /etc/update-motd.d
```
### [network-test](https://github.com/StudioLE/Bash/blob/main/network-test)
A simple script to test network connectivity.
- Attempts to `ping` external servers via IPv4, IPv6 and DNS.
- Attempts to `curl` to determine the external IPv4 and IPv6 addresses.
```bash
# Run once
curl -fsS https://bash.studiole.uk/network-test | sudo bash
```
```bash
# Install
curl -fsS https://install.studiole.uk/network-test | sudo bash
# Run
network-test
```
### [remote-archive](https://github.com/StudioLE/Bash/blob/main/remote-archive)
Create a timestamped archive of the `remote-backup-files` and `remote-backup-sqlite` backups.
``` bash
# Install
curl -fsS https://install.studiole.uk/remote-archive | sudo bash
# Run
remote-archive [SSH_HOST]
```
### [remote-backup-files](https://github.com/StudioLE/Bash/blob/main/remote-backup-files)
Backup files from a remote server to a local `/backups` directory using `rsync`.
Sqlite files with extensions `.db`, `.sqlite`, or `sqlite3` are excluded as they could become corrupted.
Use `remote-backup-sqlite` for them.
``` bash
# Install
curl -fsS https://install.studiole.uk/remote-backup-files | sudo bash
# Run
remote-backup-files [SSH_HOST] [REMOTE_DIRECTORY]
```
### [remote-backup-sqlite](https://github.com/StudioLE/Bash/blob/main/remote-backup-sqlite)
Backup `sqlite3` files from a remote server to a local `/backups` directory.
``` bash
# Install
curl -fsS https://install.studiole.uk/remote-backup-sqlite | sudo bash
# Run
remote-backup-sqlite [SSH_HOST] [REMOTE_DIRECTORY]
```
### [remote-restore](https://github.com/StudioLE/Bash/blob/main/remote-restore)
Restore files backed up with `remote-backup-files` and `remote-backup-sqlite`.
``` bash
# Install
curl -fsS https://install.studiole.uk/remote-restore | sudo bash
# Run
remote-restore [SSH_HOST] [REMOTE_DIRECTORY]
```
### [swatches](https://github.com/StudioLE/Bash/blob/main/swatches)
Print swatches of the basic terminal foreground and background pairs.
``` bash
# Run once
curl -fsS https://bash.studiole.uk/swatches| sudo bash
```
``` bash
# Install
curl -fsS https://install.studiole.uk/swatches | sudo bash
# Run
swatches
```
### [upgrade-packages](https://github.com/StudioLE/Bash/blob/main/upgrade-packages)
A basic script to quietly and non-interactively update and upgrade packages via `apt`.
``` bash
# Run once
curl -fsS https://bash.studiole.uk/upgrade-packages | sudo bash
```
``` bash
# Install
curl -fsS https://install.studiole.uk/upgrade-packages | sudo bash
# Run
upgrade-packages
```