0%

安装

首先安装一下 tar

yum install tar

使用脚本安装 trojan

1
source <(curl -sL https://git.io/trojan-install)

输入证书

image-20230913182329439

切换为 trojan-go

trojan

1

7

开启 udp 支持

修改文件

1
vim /usr/local/etc/trojan/config.json

新增 websocked 支持

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"websocket": {
"enabled": true,
"path": "/djdlanhdaio11hdnh",
"hostname": " 域名 & quot;,
"obfuscation_password": "",
"double_tls": true,
"ssl": {
"verify": true,
"verify_hostname": true,
"cert": "/root/.acme.sh/dasdasdasdas111.bigtail.monster_ecc/fullchain.cer",
"key": "/root/.acme.sh/dasdasdasdas111.bigtail.monster_ecc/dasdasdasdas111.bigtail.monster.key",
"key_password": "",
"prefer_server_cipher": false,
"sni": " 域名 & quot;,
"session_ticket": true,
"reuse_session": true,
"plain_http_response": ""
}
}

修改服务端的 yaml 文件

1
2
3
proxies:
- {name: hellow.bigtail.monster:36101, server: hellow.bigtail.monster, port: 36101, type: trojan, password: zl5ZwEhS, sni: hellow.bigtail.monster, network: ws, udp: true, ws-opts: {path: /dasdnjsakdnjksandklsandkla}}

启动 cloudflare 代理 记得开启 ssl 为严格模式

image-20230913184344767

安装 warp 加速

用于访问 gpt

bash <(curl -fsSL git.io/warp.sh) d

你好啊

打造花里胡哨的终端

更新 package

sudo apt update && sudo apt upgrade

安装 zsh

sudo apt install zsh -y

安装 oh-my-zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/

;master/tools/install.sh -O - | zsh || true

安装命令补全和高亮插件

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
sed -i’s/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g’ ~/.zshrc

将 zsh 设置为默认的 shell

chsh -s /bin/zsh

1
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
1
2
3
open ~/.zshrc

ZSH_THEME="powerlevel10k/powerlevel10k"

vim .zshrc

image-20230910231819589

编译安装 zsh 高版本

1
2
3
4
5
6
7
8
9
10
11
wget https://jaist.dl.sourceforge.net/project/zsh/zsh/5.8/zsh-5.8.tar.xz

tar xvf zsh-5.8.tar.xz

yum install gcc perl-ExtUtils-MakeMaker
yum install ncurses-devel
cd zsh-5.8
./configure
make && make install
vim /etc/shells
# 在最后一行加上:/usr/local/bin/zsh

安装 autojump

1
2
3
4
git clone git://github.com/joelthelion/autojump.git
./install.py
vim ~/.zshrc
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh

如果有权限不足的问题

最笨的方法

1
2
3
4
# 找到所有的地址 
find /-name autojump 2>/dev/null
# 全部给他们赋予权限
chmod +x 找到的地址