rtty: Open Source Web Tool for Remote Device Terminal Access

rtty: Open Source Web Tool for Remote Device Terminal Access

2022-10-10 0 1,566
Resource Number 44903 Last Updated 2025-02-24
¥ 0 USD Upgrade VIP
Download Notice Demo
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

Product Details 商品属性

  • Language: Go
  • Database: Mysql
  • License: License-Free
  • Source Code: Fully Open Source
  • Specification: Full Website Source
  • Delivery: Automatic (instant download after payment)

Recommended in this issue is a tool to access the device terminal through the Web — rtty.

rtty consists of a client and a server. The client is implemented in pure C, the server is implemented in GO language, and the front-end interface is implemented in vue. With rtty, you can access the terminal of your device through the Web from anywhere, and distinguish your different devices by device ID. rtty is great for maintaining Linux devices remotely.

class=”pgc-h-arrow-right”>

  • Client C language implementation, very small, suitable for embedded Linux

SSL not supported: rtty(32K) + libev(56K)

SSL: + libmbedtls(88K) + libmbedcrypto(241K) + libmbedx509(48k)

  • Remote batch command execution
  • Support SSL: openssl, mbedtls, CyaSSl(wolfssl)
  • SSL two-way authentication (mTLS)
  • very convenient to upload and download files
  • Access different devices based on device ID
  • Support HTTP proxy – Access your device’s Web
  • Full-function terminal based on Xterm.js
  • Easy to deploy and use

9e35c008e5394b088872e27f23152c44noop.image_

class=”pgc-h-arrow-right”> Client dependencies

  • libev – High performance event loop library
  • mbedtls(polarssl), CyaSSl(wolfssl), or openssl – if you need to support SSL

Deploy server

1 Download the compiled binary from the Release page or compile it yourself

git clone https://github.com/zhaojh329/rttys

cd ui
npm install
npm run build
cd ..

./build.sh linux amd64

2 authentication

  • Token

Generate a token:

$ rttys token
Please set a password:******
Your token is:  34762d07637276694b938d23f10d7164

Use token:

$rttys -t  34762d07637276694b938d23f10d7164
  • SSL two-way authentication (mTLS)

You can enable mTLS by specifying the device CA store in the configuration file (valid file) or in the CLI (parameter ssl-cacert). Devices that do not have a valid CA in storage will be disconnected at the TLS handshake.

3 Run service

Move the rttys executable to /usr/local/bin/

sudo mv rttys /usr/local/bin/

Copy the configuration file to /etc/rttys/

sudo mkdir  /etc/rttys
sudo cp rttys.conf /etc/rttys/

< p data – track = “44” > create a systemd unit file: / etc/systemd/system/rttys. Service < / p >

[Unit]
Description=rttys
After=network.target

[Service]
ExecStart=/usr/local/bin/rttys run -c /etc/rttys/rttys.conf
TimeoutStopSec=5s

[Install]
WantedBy=multi-user.target

To start the service for the first time, perform the usual systemctl operation

sudo systemctl  daemon-reload
sudo systemctl enable rttys
sudo systemctl start rttys

The service can be stopped by

sudo systemctl stop rttys

4 Database preparation (Sqlite, MySql, or Mariadb)

Log in to the database console as root on the database instance

mysql -u root -p

Create the database user that will be used by Rttys, authenticated by password. This example uses “rttys” as the password. Please use the security password

for your instance

CREATE USER 'rttys' IDENTIFIED  BY 'rttys'; 

Create the database using the UTF-8 character set and collation rules. Make sure to use the utf8mb4 character set instead of utf8, as the former supports all Unicode characters (including emojis) beyond the basic multilingual plane. In addition, choose a sorting rule based on what you expect. If in doubt, use unicode_ci or general_ci

CREATE DATABASE rttys CHARACTER SET 'utf8mb4' COLLATE  'utf8mb4_unicode_ci'; 

Grant all permissions on the database to the database user created above

GRANT ALL  PRIVILEGES ON rttys.* TO 'rttys';
FLUSH PRIVILEGES; 

Install rtty (for Linux distributions)

Install dependencies

sudo apt install -y libev-dev libssl-dev       # Ubuntu, Debian
sudo pacman -S --noconfirm libev openssl      # ArchLinux
sudo yum install -y libev-devel openssl-devel #  Centos

Clone rtty code

git clone --recursive https://github.com/zhaojh329/rtty.git

compile

cd rtty & &  mkdir build & &  cd build
cmake ..  & &  make install

Run rtty

Replace the following parameters with your own

sudo rtty -I 'My-device-ID' -h 'your-server' -p 5912 -a -v -d 'My Device Description'

If your rttys is configured with a token, add the following parameters (replace the tokens below with your own generation)

-t  34762d07637276694b938d23f10d7164

Access

through a browser

Access your server using a Web browser:
http://your-server-host:5913, then click the Connect button.

or directly connect to the device without Web login (device whitelist needs to be configured on the server)

http://your-server-host:5913/connect/devid1

http://your-server-host:5913/connect/devid2

Transfer files from local to remote device

rtty -R

Transfer file from remote device to local

rtty -S test.txt

—END—

Open source protocol: MIT

资源下载此资源为免费资源立即下载
Telegram:@John_Software
☆☆☆☆☆0 pts · 0 reviews
Updated 2025-02-24

Q&A

No questions yet. Ask the seller!

Reviews

No reviews yet. Share your experience after purchase.

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

TopTinker E-Commerce rtty: Open Source Web Tool for Remote Device Terminal Access https://toptinker.com/44903.html

商家类型:个人(声明)

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. TopTinker will then settle the payment for the seller. Note: Please ensure to place your order and make payment through TopTinker. If you do not place your order and make payment through TopTinker, and the seller sends fake source code or encounters any issues, TopTinker will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by TopTinker until 7 days after the transaction is completed and both parties confirm that there are no issues. TopTinker will then settle with the seller. In case of any disputes, TopTinker will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through TopTinker, any issues and disputes have nothing to do with TopTinker, and TopTinker will not be responsible for any liabilities!
View details
  • 1. TopTinker will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. TopTinker cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact TopTinker for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that TopTinker can intervene quickly.
View details
  • 1. As a third-party intermediary platform, TopTinker solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the TopTinker platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

TopTinker Customer Service

24-hour online professional services