Giter Club home page Giter Club logo

electerm-web-docker's Introduction

中文

electerm Tweet

GitHub version Build Status license JavaScript Style Guide Get it from the Snap Store Get it from the Microsoft Store GitHub Sponsors

Open-sourced terminal/ssh/telnet/serialport/sftp client(linux, mac, win).

For experienced developers, you may try the web app version running in browser(including mobile device): electerm-web

Online demo: https://electerm-demo.html5beta.com

Features

  • Works as a terminal/file manager or ssh/telnet/serialport/RDP/sftp client
  • Global hotkey to toggle window visibility (similar to guake, default is ctrl + 2)
  • Multi platform(linux, mac, win)
  • 🇺🇸 🇨🇳 🇧🇷 🇷🇺 🇪🇸 🇫🇷 🇹🇷 🇭🇰 🇯🇵 🇸🇦 🇩🇪 🇰🇷 Multi-language support(electerm-locales, contributions/fixes welcome)
  • Double click to directly edit (small) remote files.
  • Auth with publicKey + password.
  • Support Zmodem(rz, sz).
  • Support ssh tunnel.
  • Support Trzsz(trz/tsz), similar to rz/sz, and compatible with tmux.
  • Transparent window(Mac, win).
  • Terminal background image.
  • Global/session proxy.
  • Quick commands
  • UI/terminal theme
  • Sync bookmarks/themes/quick commands to github/gitee secret gist
  • Quick input to one or all terminals.
  • Command line usage: check wiki
  • Deep link support: check wiki

Download

Install

  • For Mac user: brew install --cask electerm
  • With snap: sudo snap install electerm --classic
  • For some Linux distribution, you can find it from OS default App store(Ubuntu, Deepin, Mint...).
  • For some linux OS, the rpm, deb, or snap release may not work, you can try the tar.gz release.
  • For Windows users, you can install it from windows store, command-line installer winget and scoop is also recommended:
# 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
  • Install from npm
npm i -g electerm

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

Upgrade

  • Auto upgrade: When a new version is released, you will get an upgrade notification after you start electerm again. You can then click the upgrade button to upgrade.
  • Download: Just download the latest edition, reinstall.
  • Npm: If you install from npm, just run npm i -g electerm again.
  • If use Snap or some other distribution system, these systems may provide upgrades.

Themes

Known issues

https://github.com/electerm/electerm/wiki/Know-issues

Troubleshoot

https://github.com/electerm/electerm/wiki/Troubleshoot

Discussion

Discussion board

electerm-wechat-group-qr.jpg

Support

Would love to hear from you, please tell me what you think, submit an issue, Start a new discussion, create/fix language files or create pull requests, all welcome.

Sponsor this project

github sponsor

https://github.com/sponsors/electerm

kofi

https://ko-fi.com/zhaoxudong

wechat donate

wechat donate

Dev

# 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 nodejs 18.x

git clone [email protected]: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

Test

npm run prepare-build
npm run prepare-test
cp .sample.env .env

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

Test build

# 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 prepare-build
./node_modules/.bin/electron-builder --linux tar.gz
# or replace tar.gz to rpm/deb/AppImage
# check dist/ folder

# build for linux arm/
./node_modules/.bin/electron-builder --linux --arm64

Use

Change log

Visit Releases.

License

MIT

electerm-web-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aogg

electerm-web-docker's Issues

websocket隔一段时间断开

nginx反代docker部署的electerm,ssh连接上服务器后,过一会就自动断了,windows客户端版本没有这个问题,请问是缺什么配置吗?

Inaccessible interface in new version

Hello!

When I tried to create a new container, I got a black screen in the browser and this log:

#docker run --init --name electerm -v /opt/electerm/data:/home/electerm/data -e "DB_PATH=/home/electerm/data"  -e "HOST=0.0.0.0"  -e "SERVER=http://192.168.0.14:8082"  -p 8082:5577 zxdong262/electerm-web

09:43:34 info › app start
09:43:34 info › server runs on http://0.0.0.0:5577
GET / 200 22004 - 100.268 ms
GET /css/2.38.11-basic.css 404 160 - 13.748 ms
GET /css/2.38.11-index.css 404 160 - 11.990 ms
GET /js/basic-2.38.11.js 404 158 - 10.776 ms
GET /images/electerm.png 404 158 - 10.207 ms
GET /images/electerm-watermark.png 404 168 - 1.447 ms

So it looks like the web server inside the container lost its path to the files.

After I switched back to the 2.37.128 — the service started successfully.

Are there some changes in new versions which can provide such an effect?
Do I need to change a start command somehow?

No menu option after docker pull.

Hi! I ran the script to get Electerm web using docker and after it installed all it loads is the software logo and no other options.

image

This is the code I ran (minus the sensitive part). I tried to load it in private mode, in a different browser, without any addons but no change.

sudo docker run --init -v /backup/electerm:/home/electerm/data \
  -e "DB_PATH=/home/electerm/data" \
  -e "HOST=0.0.0.0" \
  -e "SERVER=http://0.0.0.0:8082" \
  -e "SERVER_SECRET=******"\
  -e "SERVER_PASS=*******" \
  -e "ENABLE_AUTH=1" \
  -p 8082:8082\
  zxdong262/electerm-web

This is the log I get:

#21:26:09 info › app start
21:26:09 info › server runs on http://0.0.0.0:5577
GET / 304 - - 162.724 ms
GET /images/electerm.png 304 - - 3.206 ms
GET /images/electerm-watermark.png 304 - - 1.807 ms
GET /favicon.ico 304 - - 1.267 ms
GET / 304 - - 2.180 ms
GET /images/electerm.png 304 - - 0.946 ms
GET /images/electerm-watermark.png 304 - - 0.896 ms
GET /favicon.ico 304 - - 0.978 ms
GET / 304 - - 3.186 ms
GET /images/electerm.png 304 - - 1.697 ms
GET /images/electerm-watermark.png 304 - - 0.928 ms
GET /favicon.ico 304 - - 1.175 ms
GET / 304 - - 2.640 ms
GET /images/electerm.png 304 - - 1.356 ms
GET /images/electerm-watermark.png 304 - - 0.929 ms
GET /favicon.ico 304 - - 0.821 ms#


Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:07:58 2023
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:58 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0


Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic

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.