mohabusama / pyguacamole Goto Github PK
View Code? Open in Web Editor NEWGuacamole Python Client
License: MIT License
Guacamole Python Client
License: MIT License
When connecting to RDP, an SSL error is reported。
{
"code": 519,
"message": "SSL/TLS connection failed (untrusted/self-signed certificate?)"
}
pyguacamole Whether to support setting some guacamole options?
I want to set disable-auth=true in pyclient
thanks for your project!
i'm using it with django, and an error occurred while I was running the program:bytes has no attribute encode 。so i changed the code of client.py at line 122.
before:
self.client.sendall(data.encode())
after:
if isinstance(data, bytes): self.client.sendall(data) elif isinstance(data, str): self.client.sendall(data.encode())
and then the program runs well.
i hope this issue will help
i wonder if this pyguacamole whethe support guacamole restful api such as create share link ?
guac=GuacamoleClient(self.ip,self.port)
guac.handshake(self.protocol,ignore_cert="true") # Exception:socket.timeout
this step in client.py:
# 2. Receive `args` instruction
instruction = self.read_instruction() ->Instruction.load(self.receive()) -> self.receive() -> self._buffer
print(self.buffer)
# output:
# bytearray(b'')
# bytearray(b'SSH-2.0-OpenSSH_7.4\r\n')
# Exception inside application: timed out
# Exception:
# ……
# buf = self.client.recv(BUF_LEN)
# socket.timeout: timed out
hello,when i according to tutor,
client.handshake(protocol='rdp', hostname='localhost', port=3389)
it returns an error:
AttributeError: 'NoneType' object has no attribute 'endswith'
from guacamole.client import GuacamoleClient
client = GuacamoleClient('127.0.0.1', 4822)
client.handshake(protocol='rdp', hostname='localhost', port=3389)
Traceback (most recent call last):
File "", line 1, in
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/client.py", line 159, in handshake
instruction = self.read_instruction()
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/client.py", line 127, in read_instruction
return Instruction.load(self.receive())
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/instruction.py", line 69, in load
if not instruction.endswith(INST_TERM):
AttributeError: 'NoneType' object has no attribute 'endswith'
thx for your help.
Whats the supported guacd version? (latest is 1.4.0)
As Python2 is being retired in 2020, dropping support for 2.7 would make sense.
I am using pyguacamole on a django project and I can't see pyguacamole logs. Is there something I should do other than adding pyguacamole to my LOGGING section in setting.py of my project ? or could I be doing it wrong ?
Hello,
I’m working on a Django backend and looking to implement a tunneling mechanism that would allow the frontend to initiate interactive SSH/RDP sessions. The goal is for end-users to access their Linux/Windows VMs directly from my application.
Is it possible to create such a tunnel object within Django that facilitates WebSocket calls for this purpose? If so, could this be achieved using this module, or is there another recommended approach?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.