All Projects → hongwenjun → Vps_setup

hongwenjun / Vps_setup

linux vim bash 脚本学习笔记 by 蘭雅sRGB https://262235.xyz/

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Vps setup

Asuswrt Merlin Transparent Proxy
transparent proxy base on ss, v2ray, ipset, iptables, chinadns on asuswrt merlin.
Stars: ✭ 367 (-45.87%)
Mutual labels:  shadowsocks, v2ray, iptables, openwrt
Shadowsocks Tutorial
🐱给小白的Shadowsocks和V2ray翻墙教程
Stars: ✭ 1,273 (+87.76%)
Mutual labels:  shadowsocks, v2ray, iptables
R2S
基于 RubikWrt 的 NanoPi R2S 固件,每日自动更新插件和内核
Stars: ✭ 96 (-85.84%)
Mutual labels:  openwrt, shadowsocks, v2ray
Luci App Clash
Luci interface for Clash Openwrt
Stars: ✭ 967 (+42.63%)
Mutual labels:  shadowsocks, v2ray, openwrt
Openclash
A Clash Client For OpenWrt
Stars: ✭ 4,680 (+590.27%)
Mutual labels:  shadowsocks, v2ray, openwrt
Share Ssr V2ray
🃏 Free SS/SSR/V2ray 免费分享节点账号信息网站
Stars: ✭ 5,984 (+782.6%)
Mutual labels:  shadowsocks, v2ray
Announcement
Stars: ✭ 391 (-42.33%)
Mutual labels:  shadowsocks, v2ray
Clashxr
A rule based custom proxy with GUI for Mac base on clash.
Stars: ✭ 405 (-40.27%)
Mutual labels:  shadowsocks, v2ray
Openmptcprouter
OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
Stars: ✭ 652 (-3.83%)
Mutual labels:  shadowsocks, openwrt
Free Ssr V2ray Vpn
ssr/酸酸乳/v2ray/shadowsocks节点/vpn/机场搬运分享
Stars: ✭ 330 (-51.33%)
Mutual labels:  shadowsocks, v2ray
Openwrt Fanqiang
最好的路由器翻墙、科学上网教程—OpenWrt—shadowsocks
Stars: ✭ 3,894 (+474.34%)
Mutual labels:  shadowsocks, openwrt
Free
翻墙、免费翻墙、免费科学上网、免费节点、免费梯子、免费ss/v2ray/trojan节点、蓝灯、谷歌商店、翻墙梯子
Stars: ✭ 16,689 (+2361.5%)
Mutual labels:  v2ray, shadowsocks
Ssr Accounts
V2Ray, 免费V2Ray账号分享, 翻墙,无界, 自由门, SquirrelVPN, SS账号, 机场
Stars: ✭ 3,854 (+468.44%)
Mutual labels:  shadowsocks, v2ray
Freepac
科学上网/翻墙梯子/自由上网/SS/SSR/V2Ray/Brook 搭建教程 免费机场、VPN工具
Stars: ✭ 4,515 (+565.93%)
Mutual labels:  shadowsocks, v2ray
Nekox
The third-party Telegram android app.
Stars: ✭ 333 (-50.88%)
Mutual labels:  shadowsocks, v2ray
Xkcptun
xkcptun is kcp tunnel for OpenWRT&LEDE, implemented in c language
Stars: ✭ 419 (-38.2%)
Mutual labels:  shadowsocks, openwrt
Iptv
一键安装管理 FFmpeg / nginx / openresty / xray / v2ray / armbian / proxmox / cloudflare partner,workers / ibm cloud foundry 脚本
Stars: ✭ 481 (-29.06%)
Mutual labels:  v2ray, openwrt
Winxray
Xray / V2Ray(vmess / vless),Shadowsocks,SSR,Trojan,NaïveProxy,Trojan-go通用客户端(Windows)!基于xray核心!
Stars: ✭ 462 (-31.86%)
Mutual labels:  shadowsocks, v2ray
Dosvpn
🚀 极速、简单、开源的 VPN 访问外网学习先进科学技术的必备工具
Stars: ✭ 485 (-28.47%)
Mutual labels:  shadowsocks, v2ray
Awesome Network Stuff
Resources about network security, including: Proxy/GFW/ReverseProxy/Tunnel/VPN/Tor/I2P, and MiTM/PortKnocking/NetworkSniff/NetworkAnalysis/etc。More than 1700 open source tools for now. Post incoming.
Stars: ✭ 578 (-14.75%)
Mutual labels:  shadowsocks, v2ray

GitHub stars GitHub forks

🔔 我們雖然窮,但是不能說謊,也不能打人;不是我們的東西,我們不能拿;

💯 要好好讀書,長大要做個對社會有用的人。



😍Linux 简单命令工具和简易脚本

点击展开内容

grep ip 并计数

grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1

# 应用: 统计自己电信服务商IP动态变化
cat /var/log/udp2raw.log \
  | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1

# 统计哪些IP在扫描你的vps
cat /var/log/auth.log \
  | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1

# 查询IP信息
https://www.ipip.net/ipquery.html

一些表情例子 EMOJI

  • 😄 😆 😵 😭 😰 😅 😢 😤 😍 😌
  • 👍 👎 💯 👏 🔔 🎁 ❓ 💣 ❤️ ☕️ 🌀 🙇 💋 🙏 💢
:smile: :laughing: :dizzy_face: :sob: :cold_sweat: :sweat_smile:  :cry: :triumph: :heart_eyes: :relieved:
:+1: :-1: :100: :clap: :bell: :gift: :question: :bomb: :heart: :coffee: :cyclone: :bow: :kiss: :pray: :anger:

安装工具 tmux 和 fish 等

apt install tmux fish  -y

GCP_AZ_AWS_Virmach等小内存优化,htop 或者 systemctl查看有的任务

systemctl | grep running

systemctl disable   google-accounts-daemon.service
systemctl disable   google-clock-skew-daemon.service
systemctl disable   google-network-daemon.service 
systemctl disable   google-osconfig-agent.service

systemctl disable  unattended-upgrades.service 
systemctl disable  fail2ban
systemctl disable  rsyslog
systemctl disable  cron
systemctl disable  [email protected]
systemctl disable  console-getty.service

微软B1ls 内存只给420M运行Docker崩溃只好开虚拟内存

# WALinuxAgent (waagent) 卸载
systemctl disable walinuxagent

# Swap 交换空间

fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

echo "/swapfile swap swap defaults 0 0"  >>  /etc/fstab


# 其他优化设定
vim /etc/sysctl.conf

vm.min_free_kbytes = 18600
vm.swappiness = 5

sysctl -p


网上找了文章  《Azure 乞丐版 B1ls 的正确使用姿势 压榨极致性能》
先凑合着用吧,反正是备用机,续签的 99刀应该可以用一年
----------------
## crontab -l
1   *   */7  *  *   reboot
59  *    *   *  *    wget -qO- git.io/fxxlb | bash
8  */8   *   *  *   docker run --rm  hostloc  用户 密码

在Android手机上安装Termux应用,测试学习10个秘密和酷命令!

1) apt install sl
     sl
2) factor "Any Number" 
3) apt install fish
     fish
4) apt install figlet
     figlet "Any Text" 
5) apt install cmatrix
     cmatrix
6) apt install fortune
     fortune 
7) apt install toilet
     toilet "Any Text" 
     toilet -f mono12 -F gay "Any Text" 
8) apt install w3m
     w3m "any websites" 
     example:- w3m google.com
9) ifconfig
10) apt install cowsay
      cowsay "Any Text"

acme协议从letsencrypt生成免费的证书

#!/usr/bin/env sh

# https://github.com/Neilpang/acme.sh/wiki/说明

# 安装ssl依赖 和 acme.sh工具
apt-get install socat netcat -y
curl  https://get.acme.sh | sh

# 设置域名
DOMAIN=ssl.srgb888.ga

# 生成域名ssl证书
~/.acme.sh/acme.sh  --issue -d ${DOMAIN}  --webroot  /var/www/html --standalone -k ec-256 --force

如果你用的nginx服务器,以后可以使用一行命令更新证书

~/.acme.sh/acme.sh  --issue -d ssl.srgb888.ga  --nginx  --standalone -k ec-256 --force

Linux 使用代理 加速git 和安装软件

#!/bin/bash
# socks5tohttp.sh

brook socks5tohttp -s 127.0.0.1:1080 -l 0.0.0.0:8010 &
ps aux | grep -E brook

export http_proxy="http://127.0.0.1:8010"
export https_proxy="http://127.0.0.1:8010"
  • Windows 系统脚本 VPN --> socks5 --> http代理 给手机使用
::  Brook 开启 socks5  再转http
start /b  brook socks5 -l :1080 -i 0.0.0.0
sleep 1
start /b  brook socks5tohttp -s 127.0.0.1:1080 -l 0.0.0.0:8010

安装 brook 用来 Socks5 转 HTTP 代理

$ curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_amd64 -o /usr/bin/brook
$ chmod +x /usr/bin/brook

# 32位系统安装
$ curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_386 -o /usr/bin/brook

  • Socks5 转 HTTP 代理
$ brook socks5tohttp -s 127.0.0.1:1080  -l 127.0.0.1:8010
  • 中继: 可以将地址中继到远程地址。 它可以中继任何tcp和udp服务器
$ brook relay -f :9999 -t 1.2.3.4:9999
  • brook socks5 运行一个独立的标准socks5服务器(TCP和UDP)
$ brook socks5 -l :1080 -i 0.0.0.0

Linux 让终端走代理的几种方法

ssh保持长连接的方式,方法有以下三种:

1.修改server端的etc/ssh/sshd_config

ClientAliveInterval 60 #server每隔60秒发送一次请求给client,然后client响应,从而保持连接
ClientAliveCountMax 3 #server发出请求后,客户端没有响应得次数达到3,就自动断开连接,正常情况下,client不会不响应

systemctl reload sshd

2.修改client端的etc/ssh/ssh_config添加以下:(在没有权限改server配置的情形下)

ServerAliveInterval 60 #client每隔60秒发送一次请求给server,然后server响应,从而保持连接
ServerAliveCountMax 3  #client发出请求后,服务器端没有响应得次数达到3,就自动断开连接,正常情况下,server不会不响应

3.在命令参数里ssh -o ServerAliveInterval=60 这样子只会在需要的连接中保持持久连接, 毕竟不是所有连接都要保持持久的

Debian 10 Buster 管理员手册 在线阅读

  • Debian 开发者和 Debian 手册作者 Raphaël Hertzog 宣布面向 Debian 10 的最新版本 Debian 管理员手册已上线。

Oracle VM VirtualBox 安装虚拟机 Debian 10 挖坑填坑笔记 在线阅读

Arch Linux 安装简易版 For VirtualBox 安装虚拟机 填坑笔记 在线阅读

黑五变态机有救,可以用NFS挂载一个僚机 在线阅读


网友视频和白话文档


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].