gsettings set org.gnome.shell.clock show-date true
The last thing to do is to XSLT the job configs to insert the user's email address instead of SR's and mine.
I wrote a quick bash script that lets me start or stop a local instance of tomcat with a single click. If you ONLY intend to ever run one tomcat at a time this will work pretty well.
It uses catalina.sh instead of startup.sh, and sets the CATALINA_PID variable to write a file containing the pid of the launched tomcat.
It first checks to see if there is a pid file at the location set by CATALINA_PID. If there is, the script reads the file and, making the assumption that you want to stop the running tomcat, calls 'catalina.sh stop', waits a few seconds and checks for the pid file again. If the file still exists it runs kill -9 on the pid, hopefully *really* stopping tomcat.
If there is no pid file we assume that tomcat is not running, and run the launch command. In my case I set the java version first, then provide a path for the PID variable, then run 'catalina.sh start'
More details in the code comments.
UPDATED FOR MAC OS: added OS X-specific alerts.
Produce a sorted list of recently changed files by running this:
find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort
Searching with find
Example: find all jpg images from this location and copy them to another location - and don't change permissions or timestamps.
find . -iname '*.jpg' -exec cp -p {} ~/Desktop/test/ \;
and
find . -iname '*.php' -exec chmod 700 {} \;
which will find all php files from here and change permissions on them to conform to the whole suPHP thing (only user-readable php files etc.)
Another one:
find . -type l -name '*.png' -exec mv {} ~/Desktop/crap/ \;
will find all of the symlink-ed png files and move them somewhere
One that matches all text files on the entire system (that is, searching recursively from /) over 10KB, owned by paul, that are not readable by other users, and then use chmod to enable reading, like this:
find / -name "*.txt" -size +10k -user paul -not -perm +o=r -exec chmod o+r {} \;
Find all recently modified files:
find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort
NOTE: When typing -exec parameters, be sure to include a space before \;. Otherwise, you might see an error such as missing argument to ´-exec'.
To easily edit docs inside of a running eXist DB
Two step process: (1)add a data source; (2)add a connection
1.1) Go to Options -> Preferences -> Data Sources
1.2a) Add a new data source in the top panel (titled Data Sources)
1.2b) Type: eXist (add the following driver files from the WEB-INF directory of your eXist instance: exist.jar, ws-commons-util-1.0.2.jar, xmldb.jar, xmlrpc-client-3.1.3.jar, xmlrpc-common-3.1.3.jar)
2.1) Choose the just-created Data Source
2.2a) Add something like this to the XML DB URI field: xmldb:exist://localhost:8080/exist/xmlrpc
2.2b) Add login info to User and Password fields
2.2c) Provide an internal path to your collection (like "/db")
Use Window -> Show View -> Data Source Explorer to browse the db.
After TEIP5-Documentation and TEIP5 failed to build again, I went in and looked at the logs more closely. I think the failure is caused by the absence of the Deja Vu fonts, which would of course be installed by default on a desktop but are not there on the headless server. I've installed them, and added them to the script, and I'm running TEIP5 again. There may be other common fonts missing, so we might have to go through this process a few times, but this is definitely progress.
SR is rebuilding the TEI deb now, presumably with an oXygen that has no JRE with it. I've removed the JRE in my Jenkins oXygen, and also placed a key file in the oXygen directory (which I hope will prevent it from trying to read /root/.com.oxygenxml to find the key). Running the stylesheetDocumentation.sh file at the command line now does not fail -- well, it does, but with an error about number of arguments required -- so I ran a test build of it through Jenkins to see if the actual thing worked, and the build did start successfully, but failed with what looks like an XSLT problem during a test. Waiting for feedback from SR about that.
I've updated my builder scripts for Maverick (Ubuntu 10.10). So far everything seems OK, but I've yet to test in a real-world environment (just in a VM, which has never been a problem).
It includes a backup builder that constructs a customized script for users to use for backing up data.
I'll build an ISO later this week and try it out on Radish.
We have a genuine need for the "cluster of one" server that Mustard is to become, to provide an Apache front-end to the Tomcats on Pear, so we're checking through one last time to see if there are any running projects on Mustard. Today I added manual redirects, through meta tags in the HTML pages, from all the ACH/ALLC 2005 conference site pages on unix.uvic.ca (in lang01), so that they redirect right over to Pear. That should be sufficient for the moment; once we have addresses on port 80, we can change those over.
:: Next Page >>
This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent, in the server room, the labs and the R&D rooms.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||