June 14th, 2007
i am now part of the great family of sun ray bloggers aggregated in planet sunray-users. there you can find a lot of very valuable information regarding the desktop products of sun microsystems. included in the list of authors are famous names like bob doolittle, the thinguy, brad lackey, pearley mears and the fat bloke. as i can see i am the only non-sun employee in this sun ray bunch.
you can expect more to come…
Posted in server based computing | 1 Comment »
May 17th, 2007
just a short update, as i have no time to write as much as i want to… i’ve been asked to join the authors of the okithx blog. so read my non-tech nonsense over there. 
Posted in hands off! this is my stuff, trash + fun = trashfun | 1 Comment »
April 15th, 2007
you have forgotten the password to the sun ray administrator interface? don't worry, this is a quick guide to retrieve it using some simple shell commands. the key to success is the file /etc/opt/SUNWut/utadmin.pw - it contains an ascii string which is the administrator password.
what, plain text passwords, you may ask? of course not... the string is "cyphered" by the rot13 algorithm. so you can get back the password by decrypting the mentioned string it with a rot13 tool.
you can do this on the web using this or this online tool or offline using the following bash script:
CODE:
-
function rot13() {
-
if [ $# = 0 ] ; then
-
tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
-
else
-
tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]" <$1
-
fi
-
}
after retrieving the original password you can use it further or change it using the /opt/SUNWut/sbin/utpw command. it changes both passwords in the sun ray data store (srds) and the local file /etc/opt/SUNWut/utadmin.pw
good luck!
Posted in server based computing | 1 Comment »
April 1st, 2007
i just stumbled upon the hudf. this is really awesome. you need to take a look at the bigger version of it - and read the explanations!
Posted in trash + fun = trashfun | No Comments »
February 26th, 2007
as promised here comes part two of the usb scripts for sun ray ultrathin-clients. this is yet simpler but fancier than the mount script because it uses zenity to display the result of the unmounting operation.
CODE:
-
#!/bin/bash
-
###################################################################################
-
# Sun Ray USB UnMount Script - /opt/SUNWut/bin/utusbumount.sh #
-
# Copyright 2007 Christian Stottmeister - http://www.stottmeister.com #
-
# #
-
# This program is free software; you can redistribute it and/or modify #
-
# it under the terms of the GNU General Public License as published by #
-
# the Free Software Foundation; either version 2 of the License, or #
-
# (at your option) any later version. #
-
# #
-
# This program is distributed in the hope that it will be useful, #
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-
# GNU General Public License for more details. #
-
# #
-
# You should have received a copy of the GNU General Public License #
-
# along with this program; if not, write to the Free Software #
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA #
-
# #
-
# See http://www.fsf.org/licensing/licenses/gpl.txs for the full license text. #
-
# #
-
###################################################################################
-
-
# RECOGNIZE CONNECTED USB DEVICES OF THE CURRENT USER
-
usbdevices=`/opt/SUNWut/bin/utdiskadm -l`
-
-
# COUNT CONNECTED USB DEVICES OF THE CURRENT USER
-
# count the lines of `utdiskadm -l` output
-
usbdevicescount=`echo "$usbdevices" | wc -l`
-
# substract 2 lines because they are only headings
-
usbdevicescount=$(($usbdevicescount-2))
-
-
# RECOGNIZE DISK AND MOUNT PATH OF THE USB DEVICE
-
usbdisk=`echo "$usbdevices" | grep "disk"`
-
usbdisk=`echo "$usbdisk" | cut -f1 -s -d' '`
-
-
# LINK THE USB DEVICE AND OPEN FILE BROWSER
-
# link to usb device will be placed into userdir, named usbdisk*
-
linklocation=~/usb$usbdisk
-
# try to eject the device
-
/opt/SUNWut/bin/utdiskadm -r $usbdisk
-
# check exit code of utdiskadm
-
if [ "$?" -eq "0" ]; then
-
# check if ~/usbdisk* exists
-
if [ -e $linklocation ]; then
-
# remove the link to /tmp/SUNWut/mnt/ *
-
rm $linklocation
-
fi
-
if [ -e /usr/bin/zenity ]; then
-
/usr/bin/zenity --info --title="USB UnMounting succeeded" --text="You can physically unmount the USB device now."
-
fi
-
exit 0
-
else
-
if [ -e /usr/bin/zenity ]; then
-
/usr/bin/zenity --error --title="USB UnMounting failed" --text="Something went wrong while unmounting $usbdisk."
-
else
-
echo ERROR. USB UnMounting of $usbdisk failed!
-
fi
-
exit 1
-
fi
so this is what you should get after executing the script:

of course there is an appropriate dialog if something fails.
by the way i have recognized that the scripts do work only if executed in a terminal. to make sure that it is run in a terminal use the checkbox in the starters' preferences dialog. to be true i don't know why this is necessary.
please let me know if you find some errors while using this script. i'ld love to know if it helps you in your sun ray environment. leaving a comment would be nice. thanks!
Posted in server based computing | 1 Comment »
February 19th, 2007
by the way, the odf plugin for ms office i referred to a few days ago is available for download. quoting the mentioned site:
The StarOffice 8 Conversion Technology Preview, a plug-in for Microsoft Word 2003 that allows users of Microsoft Word 2003 to read, edit and save import to the OpenDocument Format (ODF) is now available.
[..]
This initial plug-in application will support the conversion of text documents (.doc/.odt) only and full support of spreadsheet and presentation documents will be available in the final version, expected in April. The converter is easy to setup and use, the conversion happens transparently and the additional memory footprint is minimal. Microsoft Word users now can have seamless two-way conversion of Microsoft Word's documents to and from ODF.
download the plugin for free and smash the office monopoly! (hey, that rhimes) 
Posted in foo bar blah, the operating system and you | No Comments »
February 12th, 2007
as you all know the sun ray ultrathin-clients support several types of devices connected to them, including serial and parallel devices, usb mass storage, pdas and so on. for a full list see the sun ray admin guide, chapter four. now when a usb mass storage device gets plugged in, the sun ray services mount it to /tmp/SUNWut/mnt/[username]/disk[integer]/. the user then needs to traverse the file system to get into the named directory which is applicable but quite a strange behavior for people who got used to windows (plug in usb-stick and it gets mounted as a lokal partition, then the user gets notified of it). because of this i have thought of a possibility to decrease user concerns and increase their positive experiences. yesterday i did a quick hack to check for mounted usb devices, link them to the users home directory and open a file browser to display the linked directory.
CODE:
-
#!/bin/bash
-
###################################################################################
-
# Sun Ray USB Mount Script - /opt/SUNWut/bin/utusbmount.sh #
-
# Copyright 2007 Christian Stottmeister - http://www.stottmeister.com #
-
# #
-
# This program is free software; you can redistribute it and/or modify #
-
# it under the terms of the GNU General Public License as published by #
-
# the Free Software Foundation; either version 2 of the License, or #
-
# (at your option) any later version. #
-
# #
-
# This program is distributed in the hope that it will be useful, #
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-
# GNU General Public License for more details. #
-
# #
-
# You should have received a copy of the GNU General Public License #
-
# along with this program; if not, write to the Free Software #
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA #
-
# #
-
# See http://www.fsf.org/licensing/licenses/gpl.txs for the full license text. #
-
# #
-
###################################################################################
-
-
# RECOGNIZE CONNECTED USB DEVICES OF THE CURRENT USER
-
usbdevices=`/opt/SUNWut/bin/utdiskadm -l`
-
-
# COUNT CONNECTED USB DEVICES OF THE CURRENT USER
-
# count the lines of `utdiskadm -l` output
-
usbdevicescount=`echo "$usbdevices" | wc -l`
-
# substract 2 lines because they are only headings
-
usbdevicescount=$(($usbdevicescount-2))
-
-
# RECOGNIZE DISK AND MOUNT PATH OF THE USB DEVICE
-
usbdisk=`echo "$usbdevices" | grep "disk"`
-
usbdisk=`echo "$usbdisk" | cut -f1 -s -d' '`
-
usbmountpath=/tmp/SUNWut/mnt/`/usr/xpg4/bin/id -u -n`/
-
-
# LINK THE USB DEVICE AND OPEN FILE BROWSER
-
# check if $usbmountpath exists and is a directory
-
if [ -e $usbmountpath -a -d $usbmountpath ]; then
-
# $usbmountpath is a directory and therefore exists
-
# link to usb device will be placed into userdir, named usbdisk*
-
linklocation=~/usb$usbdisk
-
# check if ~/usbdisk* exists
-
if [ ! -e $linklocation ]; then
-
ln -s $usbmountpath $linklocation
-
fi
-
nautilus $linklocation
-
fi
the script has a pitfall yet, because it supports only one usb device per user. so if the user connects two or more usb mass storage devices (should happen rarely) the scripts fails. i plan to code an option the select the desired device. perhaps some of my fellow readers want to supply this so i don't have to code it?
btw. using this script you have to unmount devices after usage of course. i will come up with the according script later.
Posted in server based computing | 3 Comments »
February 11th, 2007
how do we define the web and ourselves using it? professor michael wesch of kansas state university tries to visualize the ideas and concepts of web 2.0 in a very well done video. while the message itself does not suprise me that much it is the video transcription that impresses me.
the blog of ksu's digital ethnography provides more information and collects responses to the video. and there a lot responses as we all live web 2.0. 
Posted in world wide webtech | 2 Comments »
February 7th, 2007
hah, how great is that?! according to a press release sun just announced the release of an opendocument (odf) plugin for microsoft word based on staroffice or openoffice respectively in a few days. odf-plugins for all other microsoft office programs are expected to be released in april 2007.
thanks to erwin for pointing this out.
Posted in foo bar blah, the operating system and you | 1 Comment »
January 29th, 2007
hey ya, fellow sysadmins.
i started playing around with the open-source network backup software bacula on a sun fire v240 and a sun storedge lto 2v tape drive, which is actually a hp ultrium 448 drive rebranded by sun. i haven't seen the application in action yet, because i'm currently lost in configuration.
what really stunnes me is the huge amount of well-written documentation - quite unusual for open-source products. huge kudos to the bacula-crew for that!
i'll keep you updated if the app itself turns out to be as good as its documentation. 
Posted in the operating system and you | 3 Comments »