Elsinore

User Forum

www.screenconnect.com
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Linux Unattended
Jake Morgan
#1 Posted : Thursday, July 28, 2011 8:38:02 PM
Rank: Administration
Joined: 4/9/2010
Posts: 859
Our Java Guest Client is fully capable of running in unattended mode; we just don't have any packaging to allow it do so. Here is a start. We've successfully configured the attached script to run as an service under Suse and Ubuntu.

Change these parameters for your installation:

Code:
# Change these based on your ScreenConnect installation and how you want the client configured
scRelayHost="munich"
scRelayPort="8041"
scEncryptionKey="BgIAAAC......"
scSessionTitle="%LOGNAME%"


The two JAR files and this script should be copied to "/var/lib/screenConnectGuestClient/"

Code:
applDir="/var/lib/$serviceNameLo


After copying to that directory, you'll need to create a symbolic link from under init.d to the sc.sh file. Then use insserv to add it as a service. Then use another tool to configure it to start at startup.

We'll probably refine this more in the future. I'd like a single script install and configure everything. Including doing WGETs to pull down the JARs and steps to create the right files under init.d and wherever else. Here is where we need feedback, because we're not super-familiar with linux. I don't want to presume too much and start copying files into the wrong places. What would you want to the script to do in an ideal world? Or should we try to use packages?
File Attachment(s):
sc.sh (8kb) downloaded 44 time(s).
bigdessert
#2 Posted : Thursday, November 03, 2011 3:57:11 PM
Rank: Advanced Member
Joined: 9/14/2010
Posts: 458
Location: Minnesota
Here is my issue....

When I run toolbox items they are copied into the screenconnect folder on the guest my documents. Well, sometimes I am running scripts I would rather not have my clients be able to run as they may be destructive. It would be nice if you could have an option to clean out the screenconnect folder on the guest when the attended session ends.

This obviously wouldn't work for unattended sessions.
haastility
#3 Posted : Thursday, November 03, 2011 6:53:34 PM
Rank: Member
Joined: 8/25/2011
Posts: 18
Location: Rochester, NY
that's a good idea... you could always make a script to delete you scripts, something like this maybe?

rmdir "%USERPROFILE%\My Documents\ScreenConnect Remote Support\" /Q /S

edit, just tested this on a windows server 2003 and worked great, obviously change the folder name to what yours is and toss it in a .bat file then run it from the toolbox like normal
teksigns
#4 Posted : Monday, January 02, 2012 1:25:56 AM
Rank: Advanced Member
Joined: 6/20/2011
Posts: 112
Location: NC
just wondering . are there a way to do this for attended session also ?

maybe use the CreateSession.ashx?Code=1234
script to create the session using curl then
open the attended session someway ...

i dont want the user to even have to open the browser ...


could you please provide a example if this is possible .

thank you
Jake Morgan
#5 Posted : Wednesday, January 04, 2012 3:27:09 PM
Rank: Administration
Joined: 4/9/2010
Posts: 859
An attended session is much easier. You have the Client and Core jar files from you SC directory? Use something like what's in the post here:

http://forum.screenconne...AC-Client.aspx#post1333

except don't use the last parameter "false" ... if launching as a host this needs to be the access token. If launching as a guest, no access token is needed.

You'll need to replace the session ID with your session ID. and make some other changes. Look at the contents of one of your auto-generated JNLP files for the arguments to java.
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.