By ThinGuy on Mar 04, 2007
Here's a demo of remote controlling a Sun Ray that is idle (i.e. not logged in) using the Sun Ray Remote Control Toolkit.
The first public/community release of the Sun Ray Remote Control Toolkit (Sun Ray RCT) is up on the Sun Ray Wiki.
The Sun Ray RCT bits can be downloaded from Mediacast.Sun.com , but please read (and contribute!) to the Sun Ray Wiki.
Please keep track of versions at the Sun Ray Wiki..
Seeking thoughts on a community script repository that will allow version and change control.
And yes, I've really been working on this until
3:05 AM. 4:00 AM.
UPDATE: Version .03 and documentation is now available on the Sun Ray Wiki
Here's a demo of what you can do with the Sun Ray Remote Control toolkit I've been working on. This is version .02 (I've added a few things from version .01, like the ability to record a users session and random session passwords) and I will publish it this week-end. From now on I'll just put pointers here, but the bits and cookbooks will be found on the Sun Ray Wiki under Remote Toolkit. Until then enjoy this little movie (which just happened to be made from the toolkit)
Movie Background: Your co-workers have been complaining about a user named Bubba. Seems he likes to play games and visit websites that are NSFW. You, Mr. SysAdmin (aka Da man) have just returned from lunch (a little groggy from the carbs so you type a command or two wrong). You notice that one of your Sun Ray Servers has higher than normal utilization. You poke around a bit and see Bubba is a top consumer and running things that he shouldn't. You break out your Sun Ray Remote Control toolkit....
UPDATE: This cookbook has been renamed to the Sun Ray Remote Control Toolkit is now being maintained on the Sun Ray Wiki.
The following is a very simple example of using x11vnc to remote control or "shadow" a Sun Ray Session. A few important caveats: 1) This is not supported by Sun. Use at your own risk. 2) It is not secure and only relies on a plain text passwords. I will work on enhancing this as well as bringing in new features of the newest version of x11vnc 3) You cannot remote control a disconnected session if you are using xscreensaver. You can change your default screensaver to be xlock via SUN_SUNRAY_UTXLOCK_PREF, but that is quite ugly. With the newer version of x11vnc, I will add the workaround for killing xscreensaver once an authenticated vnc connection is made. 4) For convenience I'm using packages from SunFreeware.com . Most of these libraries are available on S10, but this version of x11vnc was compiled against the libraries from SunFreeware. When I build the next version, I'll use what's in S10 and Nevada. 5) This is only for Solaris, but should work just fine with Linux assuming you have x11vnc running correctly and the startup file is located in /etc/X11/xinit/xinitrc.d 6) Read the x11vnc Sun Ray page , especially the shared memory issues. I've included the shm_clear script in the sbin directory of my sample scripts. With those caveats understood and out of the way, let's proceed. Install Required Packages Get the Sample Scripts Grab, unzip, and extract the SUNWutRC sample scripts This will create a directory called /opt/SUNWutRC Non-CAM Use
1) Create a Startup file (Make sure that you make the perms 755)
Contents should look like this: #!/bin/sh
Contents should look like this: #!/bin/sh
CAM Use 1) Don't create the start up file, rather have your CAM script call "/opt/SUNWutRC/RemoteControl &" Both CAM and Non-CAM 2) Edit /opt/SUNWutRC/shared/passwd. The first line is the full control password, the second line is the view only password. 3) Start a new session from a Sun Ray. Remote Controlling the Session You can now remote control the session via two methods, a vncviewer or a web browser. Do NOT remote control your session from the same Sun Ray. You've been warned.... Connection information for each user (VNC Port or HTTP Port) lives in /tmp/SUNWutRC/$USER.settings.vnc Note that if you "more" the file with Gnome Terminal, you can actually right click on the URL link and connect.
To Do: Serve up /tmp/SUNWutRC contents in a protected web page so that files can be clicked on to launch the remote control More security Integrate x11vnc version .8.x or greater to allow more features (specifically the xscreensaver kill and relaunch scripts) Detect large screen sizes (i.e. Xinernama enabled MH groups) and scale them automatically Integrate tightvnc file sharing Reduce the color depth Experiment with shm saving tips On demand launcher with user supplied password.
Donate some $$$ to Karl Runge
Think Thin is a collection of bloggers that work with Oracle's Virtual Desktop portfolio of products.