2016-01-08 17:22:55 +08:00
|
|
|
# Some useful scripts
|
2015-03-27 13:27:33 +08:00
|
|
|
|
2016-04-13 11:58:48 +09:00
|
|
|
l2tp.sh
|
|
|
|
=======
|
2015-03-27 13:27:33 +08:00
|
|
|
|
2016-11-29 12:00:45 +09:00
|
|
|
- Description: Auto install L2TP VPN for CentOS6+/Debian7+/Ubuntu12+
|
|
|
|
- Intro: https://teddysun.com/448.html
|
2016-06-14 14:06:32 +09:00
|
|
|
```bash
|
2016-09-12 22:57:36 +09:00
|
|
|
Usage: l2tp [-l,--list|-a,--add|-d,--del|-m,--mod|-h,--help]
|
2016-06-14 13:53:42 +09:00
|
|
|
|
2016-06-14 14:06:32 +09:00
|
|
|
| Bash Command | Description |
|
2016-06-14 13:53:42 +09:00
|
|
|
|------------------|------------------------------|
|
|
|
|
| l2tp -l,--list | List all users |
|
|
|
|
| l2tp -a,--add | Add a user |
|
|
|
|
| l2tp -d,--del | Delete a user |
|
2016-09-12 22:57:36 +09:00
|
|
|
| l2tp -m,--mod | Modify a user password |
|
2016-06-14 13:53:42 +09:00
|
|
|
| l2tp -h,--help | Print this help information |
|
2016-06-14 14:06:32 +09:00
|
|
|
```
|
2015-03-27 13:27:33 +08:00
|
|
|
|
2016-12-24 20:36:31 +09:00
|
|
|
bbr.sh
|
|
|
|
======
|
|
|
|
|
|
|
|
- Description: Auto install latest kernel for TCP BBR
|
|
|
|
- Intro: https://teddysun.com/489.html
|
|
|
|
|
2016-04-13 11:58:48 +09:00
|
|
|
bench.sh
|
|
|
|
========
|
2015-03-27 13:27:33 +08:00
|
|
|
|
2016-11-29 12:00:45 +09:00
|
|
|
- Description: Auto test download & I/O speed script
|
|
|
|
- Intro: https://teddysun.com/444.html
|
2016-06-14 14:06:32 +09:00
|
|
|
```bash
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
| Option | Bash Command |
|
|
|
|
|----------|---------------------------------|
|
|
|
|
| 1 | wget -qO- bench.sh | bash |
|
|
|
|
| 2 | curl -Lso- bench.sh | bash |
|
|
|
|
| 3 | wget -qO- 86.re/bench.sh | bash |
|
|
|
|
| 4 | curl -so- 86.re/bench.sh | bash |
|
|
|
|
```
|
2016-01-08 17:22:55 +08:00
|
|
|
|
2016-08-12 13:56:35 +09:00
|
|
|
backup.sh
|
|
|
|
=========
|
|
|
|
|
2017-02-21 12:03:04 +09:00
|
|
|
- You must modify the config before run it
|
2016-11-29 12:00:45 +09:00
|
|
|
- Backup MySQL/MariaDB/Percona datebases, files and directories
|
|
|
|
- Backup file is encrypted with AES256-cbc with SHA1 message-digest (option)
|
|
|
|
- Auto transfer backup file to Google Drive (need install `gdrive` command) (option)
|
|
|
|
- Auto transfer backup file to FTP server (option)
|
|
|
|
- Auto delete Google Drive's or FTP server's remote file (option)
|
|
|
|
- Intro: https://teddysun.com/469.html
|
2016-08-12 13:56:35 +09:00
|
|
|
|
|
|
|
```bash
|
2016-11-29 22:47:54 +09:00
|
|
|
Install gdrive command step:
|
2016-08-12 13:56:35 +09:00
|
|
|
|
|
|
|
For x86_64:
|
2016-11-29 12:00:45 +09:00
|
|
|
wget -O /usr/bin/gdrive http://dl.lamp.sh/files/gdrive-linux-x64
|
2016-08-12 13:56:35 +09:00
|
|
|
chmod +x /usr/bin/gdrive
|
|
|
|
|
|
|
|
For i386:
|
2016-11-29 12:00:45 +09:00
|
|
|
wget -O /usr/bin/gdrive http://dl.lamp.sh/files/gdrive-linux-386
|
2016-08-12 13:56:35 +09:00
|
|
|
chmod +x /usr/bin/gdrive
|
|
|
|
```
|
|
|
|
|
2016-11-29 22:47:54 +09:00
|
|
|
ftp_upload.sh
|
|
|
|
=============
|
|
|
|
|
|
|
|
- You must to modify the config before run it
|
|
|
|
- Upload file(s) to FTP server
|
|
|
|
- Intro: https://teddysun.com/484.html
|
|
|
|
|
2016-04-13 11:58:48 +09:00
|
|
|
unixbench.sh
|
|
|
|
============
|
2016-01-08 17:22:55 +08:00
|
|
|
|
2016-11-29 12:00:45 +09:00
|
|
|
- Description: Auto install unixbench and test script
|
|
|
|
- Intro: https://teddysun.com/245.html
|
2016-01-08 17:22:55 +08:00
|
|
|
|
2016-04-18 23:32:11 +09:00
|
|
|
pptp.sh(Deprecated)
|
|
|
|
===================
|
|
|
|
|
2016-11-29 12:00:45 +09:00
|
|
|
- Description: Auto Install PPTP for CentOS 6
|
|
|
|
- Intro: https://teddysun.com/134.html
|
2016-01-08 17:22:55 +08:00
|
|
|
|
2017-01-21 11:00:37 +09:00
|
|
|
Copyright (C) 2013-2017 Teddysun <i@teddysun.com>
|