Combo đề xuất Local (Windows): WezTerm + SSH config
Remote (Linux): tmux + Neovim + Yazi + Aider + lazygit + Git
Tại sao combo này phù hợp hơn workflow WSL2 Khi code qua SSH, toàn bộ toolchain chạy trực tiếp trên Linux server — không có vấn đề MIME type, không cần WSL, Yazi preview ảnh hoạt động ngay vì ueberzugpp có native Linux. LSP server, treesitter, Aider đều chạy sát code, không có latency copy file qua mạng.
WireGuard là một hệ thống VPN thú vị, mới, cực kỳ đơn giản, sử dụng mật mã hiện đại. Việc triển khai Linux của nó chạy trong kernel, giúp tăng hiệu năng đáng kể so với triển khai VPN không gian người dùng truyền thống
Mô-đun nhân WireGuard rất tuyệt, nhưng đôi khi bạn có thể không cài đặt được các mô-đun mới. Ví dụ như là trên VPS sử dụng OpenVZ hoặc LXC.
//install node version manager curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
// check version node –version
// list remote nvm list-remote
// list installed versions of node (via nvm) nvm ls
// install specific version of node nvm install v14.20.1
// set default version of node nvm alias default v14.20.1
// switch version of node nvm use v14.20.1
// https://stackoverflow.com/questions/66434750/npm-err-git-dep-preparation-failed-when-trying-to-install-package-json
npm cache clean –force rm -rf node_modules && rm package-lock.json npm install –legacy-peer-deps
1. Tạo thư mục chứa dữ liệu bot mkdir hummingbot 2. Phân chia thư mục dữ liệu của bot cho file logs, file config và file database mkdir hummingbot/conf mkdir hummingbot/logs mkdir hummingbot/data mkdir hummingbot/scripts 3. Phân quyền thư mục Để tránh lỗi [Errno 13] Permission denied: 'conf/encrypted_default.json' thì cần phải phân quyền thư mục
sudo chown -R $USER ~/hummingbot chmod -R 777 ./hummingbot 3. Tạo và chạy hummingbot docker create -it \ --name hummingbot-instance \ --network host \ --mount "type=bind,source=$(pwd)/hummingbot/conf,destination=/conf/" \ --mount "type=bind,source=$(pwd)/hummingbot/logs,destination=/logs/" \ --mount "type=bind,source=$(pwd)/hummingbot/data,destination=/data/" \ --mount "type=bind,source=$(pwd)/hummingbot/scripts,destination=/scripts/" \ coinalpha/hummingbot:latest docker start hummingbot-instance && docker attach hummingbot-instance Giới hạn tài sản có thể được sử dụng Trường hợp bạn muốn bot chỉ có thể thực thi trong 100USD có thể xem xét tính năng này.
https://www.binarytides.com/enable-testing-repo-debian/
Cài đặt và sử dụng backports
https://wiki.debian.org/AptPreferences https://wiki.debian.org/DebianTesting https://www.debian.org/security/
VPN
https://xalitech.com/wireguard-vpn-server-on-aws-lightsail/
https://golb.hplar.ch/2018/10/wireguard-on-amazon-lightsail.html