0
点赞
收藏
分享

微信扫一扫

开源终端工具electerm,取代Xshell

文章目录

概述

基于electron/ssh2/node-pty/xterm/antd/ subx等libs的终端/ssh/sftp客户端(linux, mac, win)。

特点

用作终端/文件管理器或 ssh/sftp 客户端(类似于 xshell)
切换窗口可见性的全局热键(类似于 guake,默认为ctrl + 2)
多平台(linux、mac、win)
🇺🇸 🇨🇳 🇧🇷 🇷🇺 🇪🇸 🇫🇷 🇹🇷 🇭🇰 🇯🇵 🇸🇦多语言支持(电子语言环境,欢迎贡献/修复)
双击直接编辑(小)远程文件。
使用内置编辑器编辑(小)本地文件。
使用公钥 + 密码进行身份验证。
支持 Zmodem(rz, sz)。
支持Trzsz(trz/tsz),类似于rz/sz,兼容tmux。
透明窗口(Mac,win)。
终端背景图片。
全局/会话代理。
快速命令
将书签/主题/快速命令同步到 github/gitee 秘密要点
支持串口(版本> 1.21.8)
快速输入到一个或所有终端。
命令行用法:查看wiki

下载/安装

https://electerm.github.io/electterm
从发布:https 😕/github.com/electterm/electterm/releases
对于 Mac 用户:brew install --cask electerm
使用快照:sudo snap install electerm --classic
对于某些 Linux 发行版,您可以从操作系统默认应用商店(Ubuntu、Deepin、Mint…)中找到它。
对于某些 linux 操作系统,rpm、deb或snap发行版可能无法正常工作,您可以尝试tar.gz发行版。
对于 Windows 用户,您可以从windows store安装它,命令行安装程序winget和scoop也被推荐:

# winget https://github.com/microsoft/winget-cli
winget install electerm

# scoop https://github.com/lukesampson/scoop
scoop bucket add dorado https://github.com/chawyehsu/dorado
scoop install dorado/electerm

# winget https://github.com/microsoft/winget-cli
winget install electerm

# scoop https://github.com/lukesampson/scoop
scoop bucket add dorado https://github.com/chawyehsu/dorado
scoop install dorado/electerm

npm i -g electerm

# after installation, it will immediately open for windows and linux,
# for macOS, it will open the drag to install panel

开机自启动

ubuntu 16.04+
start panel => startup applications => add =>name: electerm, command: electerm --autohide

windows
create electerm.exe’s shortcut and move the shortcut to %appdata%\Microsoft\Windows\Start Menu\Programs\Startup

Mac OS
create electerm.sh with content:

/Applications/electerm.app/Contents/MacOS/electerm --autohide
# make it exe
chmod +x electerm.sh

Then from settings -> Users & Groups -> Your-user -> login items -> add electerm.sh

升级

自动升级:当有新版本发布时,再次启动Electerm后会收到升级通知。然后您可以单击升级按钮进行升级。
下载:只需下载最新版本,重新安装。
npm:如果从 npm 安装,只需npm i -g electerm再次运行。
如果使用 Snap 或其他一些分发系统,这些系统可能会提供升级。

开发

# tested in ubuntu16.04+/mac os 10.13+ only
# needs nodejs/npm, suggest using nvm to install nodejs/npm
# https://github.com/creationix/nvm
# with node 8.6+

git clone git@github.com:electerm/electerm.git
cd electerm
npm i

# start webpack dev server, requires port 5570
npm start

# in a separate terminal session run app
npm run app

# code format check
npm run lint

# code format fix
npm run fix

测试

npm run pre-test
cp .sample.env .env

# install playwright
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm i -D playwright@1.20.2 --no-save

# then edit .env, fill your test host/username/password, may only works in mac OS
npm run test

测试构建

# Tested only in ubuntu 16.04 x64+
# Install yarn first(to do yarn autoclean)
# See https://yarnpkg.com/en/docs/install

# Build linux only with -l
npm i
npm run pre-test
npm run release -l
# visit dist/

参考资料

https://github.com/electerm/electerm
https://github.com/electerm/electerm/wiki/Command-line-usage
https://github.com/electterm/electterm/wiki/Know-issues
https://github.com/electterm/electterm/wiki/Troubleshoot
https://github.com/electerm/electerm/discussions
https://github.com/electerm/electerm/wiki/Autorun-electerm-when-login-to-os

举报

相关推荐

0 条评论