LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2017, 03:57 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
GateOne terminal emulation in Chrome or Firefox


I am installing gateone terminal so I
can run it on Chrome or may be Firefox....

Code:
Download GateOne source from https://github.com/liftoff/GateOne/ 

#unzipped and then install using these instructions:  
http://liftoff.github.io/GateOne/About/installation.html#from-source 

~/Downloads/GateOne-master $  sudo python setup.py install
#Using vim INSTALL.txt, start gateone

Code:
~/Downloads/GateOne-master $ sudo python run_gateone.py
[I 170402 13:12:18 server:4179] Gate One License: AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html)
[I 170402 13:12:18 server:4188] Imported applications: Terminal
[I 170402 13:12:18 server:4340] Version: 1.2.0 (20160618135724)
[I 170402 13:12:18 server:4341] Tornado version 4.4.2
[I 170402 13:12:18 server:4361] Connections to this server will be allowed from the following origins: 'localhost:10443 127.0.0.1:10443 HP:10443 127.0.1.1:10443'
[I 170402 13:12:18 server:3678] No authentication method configured. All users will be ANONYMOUS
[I 170402 13:12:18 server:3759] Loaded global plugins: gateone.plugins.editor, gateone.plugins.help
[I 170402 13:12:18 server:4492] Listening on https://*:10443/
[I 170402 13:12:18 server:4545] Process running with pid 6348
... 
...
#When I entered url 127.0.0.1:10443 on Chrome browser, 
I got these errors on host terminal,
.....  
...
[W 170402 13:12:38 iostream:1276] SSL Error on 16 ('127.0.0.1', 33698): [SSL: HTTP_REQUEST] http request (_ssl.c:590)
[W 170402 13:12:38 iostream:1276] SSL Error on 17 ('127.0.0.1', 33700): [SSL: HTTP_REQUEST] http request (_ssl.c:590)
[W 170402 13:12:38 iostream:1276] SSL Error on 16 ('127.0.0.1', 33702): [SSL: HTTP_REQUEST] http request (_ssl.c:590)
....
#At same time, I got these errors on Chrome when I
enter url 127.0.0.1:10443

Code:
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_RESET
Reload   HIDE DETAILS
... 
....
# I also did this, but same result.
Code:
~/Downloads/GateOne-master $ sudo iptables -A INPUT -p tcp --dport 10443 -j ACCEPT                              
$ ss | grep -i 10443       # Port 10443 did not show up                                                           
$ grep -i 10443 /etc/services       # Port 10443 did not show up                                                                                                        
$ sudo iptables -A OUTPUT -p tcp --sport 10443 -j ACCEPT
Here is the iptable:

Quote:
$ sudo iptables -L
[sudo] password for user1:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:10443
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:10443

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT tcp -- anywhere anywhere tcp spt:10443
When I ran :
Quote:
$ sudo python run_gateone.py

# I get multiple instances.... WHY?
$ ps ax | grep -i gateone
8540 pts/2 S+ 0:00 sudo python run_gateone.py
8541 pts/2 S+ 0:00 python run_gateone.py
8576 pts/3 S+ 0:00 grep --color=auto -i gateone

The port for GateOne was enabled.

Why is port 10443 not show up in /etc/services and ss command after enabling?

I am using Linux Mint 18.x as host.

Last edited by fanoflq; 04-03-2017 at 01:35 PM.
 
Old 04-03-2017, 04:20 PM   #2
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Solved.
Message to self:

Use https instead of http for connection.
E.g
Quote:
https://192.168.122.168:<port>
Not this:
Quote:
http://192.168.122.168:<port>
 
Old 04-03-2017, 04:31 PM   #3
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
When you have this error:

Quote:
Host/IP or ssh:// URL [localhost]: 192.168.122.168
Port [22]: 22
User: user1
Connecting to ssh://user1@192.168.122.168:22

The authenticity of host '192.168.122.168 (192.168.122.168)' can't be established.
ECDSA key fingerprint is SHA256:hale1Auz4FkQ54zNJXP1Z3o7jErkX8UvJ9hIIGDT+EM.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.122.168' (ECDSA) to the list of known hosts.
user1@192.168.122.168's password:
unix_listener: "/home/user123456/Downloads/GateOne-master/sessions/Y2RjYTFmZjliOTgxNGI2Mjg2NjI1NmE4OTk4OWVjN2M5Z/flGwfG14.npxfeZf3drsgyonJ" too long for Unix domain s
ocket
[Press Enter to close this terminal]
Error due to message "too long for Unix domain s"


can be solved like this:

Code:
#Move directory:
/home/user123456/Downloads/GateOne-master

#to 

/home/user123456/GateOne-master

#or start over (unzip GateOne-master.zip) in home directory
It only works in Chrome.

Last edited by fanoflq; 04-03-2017 at 04:42 PM.
 
Old 04-04-2017, 02:50 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
why, oh why? a web-based terminal emulator that only works in chrome?

apart from being utterly pointless hyper-bloat, i "feel" a whole range of security implications.
the simplest probably being that now i'm not only revealing my browsing habits to google, but also my command history
but i'm sure there's more to that feeling, maybe some specialist would like to substantiate it? thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to do terminal emulation... Russ Linux - Software 1 02-15-2008 10:49 AM
terminal emulation sadly so Linux - General 1 09-28-2007 02:31 AM
Terminal Emulation Help!! Jayaraghavendran Programming 2 08-27-2006 02:33 PM
GUI Terminal Emulation Svha Linux - Software 0 07-07-2004 07:03 PM
Minicom Terminal Emulation twantrd Linux - Software 2 02-20-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration