browser shell

  我一直坚信,做项目需要通过文档来总结。一来可以梳理自己的项目和思路,二来可以备忘,三则可以为有同样需求的朋友提供一些参考。如果一直不进行总结,真的很可能是写了多年的代码,却只有一年的经验。当学习一项新技术时,有时看了很多资料,依旧一知半解,但如果能用自己的方式把这项技术描述出来,它慢慢地开始成为自己的知识,当多次地重复温习并使用它时,它才不会被遗忘,才会真正成为自己的技术。

  browser shell,通俗的说就是用浏览器模拟出secureCRT、putty 等工具的功能,实现远程登录。先来一张图,直观了解一下:

 

但是既然有了secureCRT、putty这类工具,还要browser shell有什么用呢?

一是项目需求;二是它确实有它的便利,可以不用在浏览器和CRT之间频繁切换,节约时间成本;三是putty等软件不能奏效的时候,比如有可能在防火墙后面不能使用这些工具访问远程系统,或防火墙只允许HTTPS流量才能通过;

 

解决方案:使用shellinabox;

Shellinabox 是一个基于 web 的终端模拟器,采用 C 语言编写,使用 Ajax 与后端服务通信。它实现了一个 Webserver,默认监听 4200 端口,在支持 Javascript 和 CSS 的浏览器上访问 http://host:4200 即可。并且可以配置 SSL/TLS 证书,使用 https 方式加密通信。它和SSH没有任何关系,也不是可靠安全地远程控制系统的方式。

 

 

ubuntu下的安装:

获取deb

wget http://ftp.cn.debian.org/debian/pool/main/s/shellinabox/shellinabox_2.14-1_i386.deb

 

安装:

sudo dpkg -i shellinabox_2.14-1_i386.deb 

 

配置:

sudo vim /etc/default/shellinabox

修改如下:

[wss@localhost test]$cat /etc/default/shellinabox
# Should shellinaboxd start automatically
SHELLINABOX_DAEMON_START=1
 
 
# TCP port that shellinboxd's webserver listens on
SHELLINABOX_PORT=8800
 
 
# Parameters that are managed by the system and usually should not need
# changing:
SHELLINABOX_DATADIR=/var/lib/shellinabox
SHELLINABOX_USER=shellinabox
SHELLINABOX_GROUP=shellinabox
 
 
# Any optional arguments (e.g. extra service definitions). Make sure
# that that argument is quoted.
#
# Beeps are disabled because of reports of the VLC plugin crashing
# Firefox on Linux/x86_64.
SHELLINABOX_ARGS="--no-beep"
[wss@localhost test]$
 
启动:
shellinaboxd -b -c /tmp -p 8800
 
访问验证:在浏览器输入http://yourServerIp:8800

 

转载于:https://www.cnblogs.com/thinkinglife/p/6180737.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
V7.3 Released on 14 Apr 2011 • New Feature: TJamFileList and TJamShellList now include a context menu for the column headers that allows turning on or off certain columns. • New Feature: TJamDriveList has the new properties “WarnLevelPercent” and “ErrorLevelPercent”. They can be used to change the color of the small bar chart which shows the free space in yellow or red, dependant on the percentage of free space. The default values are 8 and 2 percent. Set these properies to 0 if you do not want the color to be changed. • New Feature: The property “IconsBasedOnFileExtension” has been added to TJamShellList and TJamFileList. If set to True, icons will be queried from the system based on the file extension only. This is usually faster compared to using the full path. The most noticeable difference is for executable files, which will no longer show the included icon but a standard icon. • New Feature: The method AutoAdjustColumnWidths() has been added to TJamShellList and TJamFileList. If called, it adjusts the column width to an optimal value, just like the shortcut Ctrl + Num+ does in every ListView. • New Feature: The menu item “Paste Shortcut” has been added to the background context menu of the TJamShellList, just like it exists in the Windows Explorer. The chosen view type and sort column are now marked in the background context menu of TJamShellList. • New Feature: The new property TJamFileList.AllowDropToBackground lets you decide if files can be added to the list using drag and drop. The default value is True. • Improvement: The controls TJamShellCombo and TJamFolderCombo are now derived from TComboBoxEx instead of TComboBox. Since TComboBoxEx supports images and indents, we were able to remove our code for custom-drawing the items. The Windows XP Explorer also uses the Windows ComboBoxEx control for its address bar, that means our TJamShellCombo now looks more like the original Explorer control. • Improvement: The type of the property BackgroundImage in TJamS
Enhance Your Delphi Application with Drop-in Shell Functionality •Includes 18 visual and non-visual components •Create Explorer-like applications within minutes with JamShellTree, the JamShellList and the JamShellCombo •Easy drop-in: Just drop the UI components right on your own forms or dialogs •Use checkboxes with JamShellTree, JamShellList, JamFileList and JamDriveList Icons and thumbnails are queried in background threads. This optimizes the reactivity and does not slow down the speed of the user interface. Look-and-Feel of the Windows Explorer •Windows Shell context menu (can be extended with a Delphi popmenu) •OLE drag-and-drop with the Windows Explorer and similar applications •Different view styles: The JamShellList and the JamFileList support small icons, large icons, extra large icons, details mode and thumbnails •Overlay icons supported •Installed Shell extensions, which are supported by the Windows Explorer, are also supported by the ShellBrowser Delphi Edition •TJamSystemShellView instances the right pane of the real Windows Explorer •Background context menu in the JamShelllist is supported How-to Guides •Comprehensive documentation of the included controls •Several sample projects for basic and advanced features of ShellBrowser Delphi Edition included Transparent Costs •The ShellBrowser Delphi Edition is royalty free and involves no runtime fees 100% Delphi Code•The controls are based on the Delphi VCL and are written in 100% Object Pascal code •No additional DLLs or ActiveX controls are necessary
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值