Code Monkey home page Code Monkey logo

across's Introduction

Some useful scripts

l2tp.sh

Usage: l2tp [-l,--list|-a,--add|-d,--del|-m,--mod|-h,--help]

| Bash Command     | Description                  |
|------------------|------------------------------|
| l2tp -l,--list   | List all users               |
| l2tp -a,--add    | Add a user                   |
| l2tp -d,--del    | Delete a user                |
| l2tp -m,--mod    | Modify a user password       |
| l2tp -h,--help   | Print this help information  |

bbr.sh

LINODE的KVM架構LINUX更換內核 文章转载自:Madlax的杂物房(http://madlax.pw/) http://madlax.pw/2016/12/03/103.html

安裝Grub 安裝過程中可能會詢問安裝位置,不需要安裝到MBR

Arch Linux

pacman -S linux grub

CentOS 7

yum install kernel grub2

Debian

apt-get install linux-image-amd64 grub2

Fedora 22

dnf install kernel-core grub2

Ubuntu

apt-get install linux-image-virtual grub2

配置Grub

編輯/etc/default/grub,修改以下項目:

GRUB_TIMEOUT=10

GRUB_CMDLINE_LINUX="console=ttyS0,19200n8"

GRUB_DISABLE_LINUX_UUID=true

GRUB_SERIAL_COMMAND="serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1"

GRUB_TERMINAL=serial

更新bootloader,更新內核後需要再一次運行該命令來更新GRUB目錄,

預設為清單第一個內核啟動:

Arch Linux

grub-mkconfig -o /boot/grub/grub.cfg

Debian 8 & Ubuntu 15.04

update-grub

CentOS 7

mkdir /boot/grub

grub2-mkconfig -o /boot/grub/grub.cfg

Fedora 22 - Replace with the current kernel version

dracut /boot/initrd-4.0.5-300.fc22.x86_64.img 4.0.5-300.fc22.x86_64

mkdir /boot/grub

grub2-mkconfig -o /boot/grub/grub.cfg

重啟到Grub2 模式

在LINODE面板選擇編輯你的設定檔

Click on Edit under the Configuration Profiles section

在Boot Settings選項的Kernel清單裡選擇GRUB 2

In the Boot Settings section, select GRUB 2 from the Kernel drop down menu

點Save Changes保存,重啟機子後就可以按通常方式更換發行版本內核了。

啟動中可能會出現以下錯誤,可以忽略。

error: file `/boot/grub/i386-pc/all_video.mod' not found.

Loading Linux linux ...

Loading initial ramdisk ...

Press any key to continue...

bench.sh

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 |

backup.sh

  • You must modify the config before run it
  • 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
Install gdrive command step:

For x86_64: 
wget -O /usr/bin/gdrive http://dl.lamp.sh/files/gdrive-linux-x64
chmod +x /usr/bin/gdrive

For i386: 
wget -O /usr/bin/gdrive http://dl.lamp.sh/files/gdrive-linux-386
chmod +x /usr/bin/gdrive

ftp_upload.sh

unixbench.sh

pptp.sh(Deprecated)

Copyright (C) 2013-2017 Teddysun [email protected]

across's People

Contributors

teddysun avatar tsukasayuki avatar malsony avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.