scadblog

2/28/2006

Update to MySQL Matlab Toolbox Installation

With an upgrade to Matlab 7.0.4 the MySQL toolbox I had installed broke.  It is a free, open source toolbox that I have written about before but which is no longer available in its present form.  The author no longer wished to support and/or develop it but the slack was taken up by another set of developers who proceeded to add BLOB support.

Unfortunately, installing this version on Linux proved unsuccessful for me.  After a compile with warning messages about missing newline characters which I then added to the files in question, the code seemingly compiled correctly.  When copied both the resulting mex file and corresponding .m file to the toolboxes/local directory and called from Matlab it reported an error with  the file sys/os/glnx86/libgcc_s.so.1.  I moved the file and linked it to the library file of the same name in /lib and the toolbox reported a different error.  This time it involved an undefined compressBound function.

Rather than debug the original code I turned to yet another MySQL toolbox project.  This project compiled correctly given a tweak to the Makefile to correct some PATH statements.  All that was needed was a gmake ; gmake install to get the proper files in place.

Filed under: Tech Resources and Tips — Michael @ 11:09 am

2/24/2006

Service Change: No More Kerberos Auth

A particularly easy and convenient way of setting up your Linux/UNIX machines for centralized authentication was the Kerberos server and admin server (kerberos.princeton.edu and kprime.princeton.edu respectively).  That method has gone away for new users and OIT now only offers LDAP as a method of authentication in such cases.  An instruction set for secure LDAP authentication will be forthcoming, but until then any of my new users will have to be maintained with local accounts unfortunately.

Filed under: MetaSCAD, New SCAD Essentials, Say What? — Michael @ 8:33 am

2/20/2006

Rate Limit Testing

This is a simple batch script I used this morning to test the rate limits I had applied via an iptables script. It simply repeats connection attempts to IPADDR on PORT for X amount of times.

#!/bin/bash

for i in `seq 1 X` ; do
echo ‘exit’ | nc IPADDR PORT ;
done

Filed under: Tech Resources and Tips — Michael @ 10:02 am

2/13/2006

Broken Symbolic Links in Home Directories

I just sent this over to the helpdesk to see if they can do anything with it or suggest a workaround.  My suspicion is that this is broken due to the move to Windows servers for home directories.
“Prior to moving home directories to the \\files Windows servers, a UNIX symbolic link to \usr\campuscgi in a user’s home directory would allow a user direct access to their campuscgi directory from a mapped drive.  The symbolic link would appear as a folder on the mapped drive and a user could drag and drop files to it.  [Classes] … utilized this feature to ease student introduction to a UNIX environment.”

Filed under: Say What? — Michael @ 12:15 pm

2/10/2006

Installing Windows Software Remotely

I’m gunning for remote upgrades and installs of my Windows third party software lately. I do not have the luxury of SMS for this purpose and I hesitate to invest in an add-on solution.  So I have been working on the problem from two angles.  First, I’m building a reporting system on the back of a project called Winventory.  I’m a few batch files short of an automated system.  With automated reports I will be able to more efficiently manage my software updates.  To actually deploy packages is the second half that has yet to be finalized, but I do have a plan of attack.  For each piece of software on my image I need determine two things, namely the installer it uses and whether the installer needs assistance completing.  Depending on the way the software comes packaged it may be equiped for silent install already (MSI, InstallShield, INNO Setup).  If the software installer isn’t able to run silently I will need to script the process using something like AutoIT.

I have tested one software package so far, WinEDT.  It comes packaged with the INNO Installer which takes the /VERYSILENT command line option.  To run the setup on the target machine I do:

psexec \\target -u admin-name -e -c winedt54.exe /VERYSILENT

If psexec reports an error code of 0 and Winventory reports the new software’s installation I know it worked.  Licensing WinEDT requires a few registry entries so I do a test install and capture the writes the winedt54.exe process makes to the registry with Regmon.  I then export the key branch, copy it to the target machine and run:

psexec \\target -u admin-name -e regedit -s c:\winedt54.reg

This method works very well for one machine with a single installation.  I do not believe it would be manageable in a situation with thousands of machines.  But in my small workgroup of 200+ I think a little batch scripting and research can handle the whole job automatically.

Filed under: New SCAD Essentials, Tech Resources and Tips — Michael @ 10:41 am

2/9/2006

Create a CentOS Mirror and Yum Update Repository

This is an update to an earlier entry where I walked through the steps to creating an apt repository for Red Hat-based linux distributions.  As the community has settled on yum for management, I’ve written this set of instructions on how to create the repository geared toward CentOS.  This method utilizes automounted ISOs so you do not have to extract the files and waste disc space just to serve up both the content of the ISOs and the ISO files themselves.
(more…)

Filed under: Tech Resources and Tips — Michael @ 12:12 pm

Font Style in Acrobat Text Boxes

Editing the font and size of text in a text box or callout box in Adobe Professional is a little counterintuitive.  The help system isn’t much help as it says that the text is determined by the ’system default settings’.

To edit the text size or font easily open the PDF file in question.  Hit Control/Command+E to bring up the Properties toolbar.  The Properties toolbar is dynamic and will reflect the changeable elements of whatever you have highlighted.  With the toolbar displayed, highlight your text box or callout text.  You’ll see that the toolbar displays font size and style selection options.

Filed under: Say What?, Tech Resources and Tips — Michael @ 11:10 am
Next Page »

Powered by WordPress