Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a754440
authored
Sep 03, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: corrected a typo
parent
59f33134
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
101 deletions
+2
-101
src/iss/installer/cloud.py
+1
-1
src/python/cloud.py
+1
-1
src/python/cloud2
+0
-10
src/python/cloud_connect_from_linux.py
+0
-89
No files found.
src/iss/installer/cloud.py
View file @
2a754440
...
...
@@ -15,7 +15,7 @@ try:
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support
import
expected_conditions
as
EC
except
ImporError
:
except
Impor
t
Error
:
pass
...
...
src/python/cloud.py
View file @
2a754440
...
...
@@ -15,7 +15,7 @@ try:
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support
import
expected_conditions
as
EC
except
ImporError
:
except
Impor
t
Error
:
pass
...
...
src/python/cloud2
deleted
100644 → 0
View file @
59f33134
#!/usr/bin/python
import
cloud
if
__name__
==
'__main__'
:
try
:
cloud
.
main
()
finally
:
pass
src/python/cloud_connect_from_linux.py
deleted
100644 → 0
View file @
59f33134
# -*- coding: utf-8 -*-
##
# Távoli klienshez csatlakozás linux OS alól
##
import
sys
,
os
,
time
,
subprocess
,
glob
##
# A távoli klienshez csatlakozás valósítja meg
# NX és RDP esetén a remmina programot hívja meg. Ha a remmina-ban még nem szerepel
# a kliens, a program elkészíti az indításhoz szükséges profilt.
# @param vm Paraméterek a csatlakozáshoz
# vm.protocol SSH, NX és RDP lehetséges
# vm.host A virtuális gép címe
# vm.port Ezen a porton csatlakozunk a virtuális géphez
# vm.user Csatlakozáshoz használt név
# vm.password Csatlakozáshoz használt jelszó
#
def
connect
(
vm
):
if
vm
.
protocol
==
"SSH"
:
command
=
"sshpass -p
%
s ssh -p
%
s -o StrictHostKeyChecking=no
%
s@
%
s"
%
(
vm
.
password
,
vm
.
port
,
vm
.
user
,
vm
.
host
)
subprocess
.
call
(
command
,
shell
=
True
)
elif
vm
.
protocol
in
(
"NX"
,
"RDP"
):
server
=
"
%
s:
%
s"
%
(
vm
.
host
,
vm
.
port
)
listdir
=
os
.
path
.
expanduser
(
"~/.remmina/*.remmina"
)
found
=
False
for
config_file
in
glob
.
glob
(
listdir
):
with
open
(
config_file
)
as
f
:
if
server
in
f
.
read
():
found
=
True
break
if
not
found
:
config_file
=
"
%
s
%
s
%
s"
%
(
os
.
path
.
expanduser
(
"~/.remmina/"
),
str
(
int
(
time
.
time
()
*
1000
)),
".remmina"
)
password
=
subprocess
.
check_output
([
"remminapasswd"
,
vm
.
password
])
f
=
open
(
config_file
,
'w'
)
if
vm
.
protocol
==
"NX"
:
f
.
write
(
NX_template
)
else
:
f
.
write
(
RDP_template
)
f
.
write
(
"name=
%
s:
%
s
\n
protocol=
%
s
\n
server=
%
s
\n
username=
%
s
\n
password=
%
s
\n
"
%
(
vm
.
protocol
,
server
,
vm
.
protocol
,
server
,
vm
.
user
,
password
))
f
.
close
()
subprocess
.
call
([
"remmina"
,
"-c"
,
config_file
])
NX_template
=
"""[remmina]
ssh_auth=0
quality=2
disableencryption=0
ssh_charset=
ssh_privatekey=
resolution=
group=
ssh_loopback=0
exec=
ssh_username=
ssh_server=
ssh_enabled=0
nx_privatekey=
showcursor=0
disableclipboard=0
window_maximize=1
viewmode=4
"""
RDP_template
=
"""[remmina]
disableclipboard=0
ssh_auth=0
clientname=
quality=2
ssh_charset=
ssh_privatekey=
console=0
resolution=
group=
ssh_loopback=0
shareprinter=0
ssh_username=
ssh_server=
security=
execpath=
sound=off
exec=
ssh_enabled=0
sharefolder=
domain=
colordepth=24
window_maximize=1
viewmode=4
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment