Tag Archive config

Setting the Probotix Comet Configuration to Find Your G-Code Library

Personal notes on how to get the LinuxCNC software that comes with the Probotix Fireball Comet CNC to find your personal library of G-code files.

The Probotix Comet controller software (AXIS) by default looks for extra G-code files in /home/probotix/emc2/nc_files.

If one does not wish to store files there, one can edit the /home/probotix/configs/Comet/Comet.ini to point it to the directory of choice.

Change the  PROGRAM_PREFIX parameter to point to the directory of choice. (As always, please back up files before hacking them.)

This will allow one to, for example, load a standard preamble with the G-code:

[code]

o<preamble> call

[/code]

or otherwise allow one to create a library of useful routines.

 

Tags, , , , ,

OS X, Apache, Tomcat, and mod_jk

I spent some time with a colleague from South Africa yesterday. He’s a long-time Windows user that writes in Java. He has a new MacBook Pro, and we scratched our head why Apache+mod_jk+Tomcat was blowing up on him.

JAVA_HOME

The first thing we had to get right was the JAVA_HOME variable. If it’s not set right when compiling mod_jk, you’re out of luck. On OS X there is a program that spits out the right value. We put the following in his ~/.profile. Please note the back ticks (accents graves) to run the java_home program.

export JAVA_HOME=`/usr/libexec/java_home`

mod_jk

With $JAVA_HOME set correctly, compiling mod_jk was straightforward. Download the mod_mod_jk tarball, unpack it, and change directories to the native subdirectory. The following should work cleanly.

$ ./configure --with-apxs=/usr/sbin/apxs
$ make clean ; make
$ sudo make install

Apache Configuration File

Be aware that OS X Lion has some lines (commented out) for support for mod_jk. Be sure to uncomment those lines. Previous versions of OS X don’t have these lines, so you’ll just add the load module directive and Jk* commands in the usual places.

That’s it, really. Once JAVA_HOME and the Apache configuration file were straightened out, things worked.

Tags, , , , , ,

Zimbra Tweaks

This is a collection of various Zimbra tweaks.

Set Zimbra to Automatically Redirect to HTTPS

When a user wants to log in with a web browser, I want to force HTTPS to be used. All connections to http://mail.domain.com are redirected to https://mail.domain.com.

$ zmtlsctl redirect
$ zmcontrol stop
$ zmcontrol start

Reference: CLI zmtlsctl to Set Web Server Mode

Set the Default Time Zone

Zimbra is very picky about the time zone string. The complete list is at the very bottom of Time Zones in ZCS.

zmprov mc default zimbraPrefTimeZoneId '(GMT-07.00) Mountain Time (US & Canada)'

Reference: Time Zones in ZCS

 

Tags, , , , , , , , ,

Configuring Apache for WordPress

WordPress Logo
I installed a new WordPress blog today on a server. The site is served by Apache using virtual hosting. I kept getting 404 errors trying to access any page that required mod_rewrite, pretty much other than the home page and administrative pages.

It turned out that I forgot the following in the Apache httpd.conf file:


...
  
    Options +FollowSymlinks
    AllowOverride FileInfo
  

Tags, , , , , , , , ,

How to enable virtual hosting with Apache.

I don’t monkey with the Apache configuration file enough to keep this information accessible in my brain. Here are some personal notes.

I set up a new LAMP server yesterday. Today I added some name-based virtual hosts to the configuration file, but was getting the following warning when restarting Apache:

[warn] _default_ VirtualHost overlap on port 80, the first has precedence

This warning was being triggered because I had not told Apache to use name-based virtual hosting. To enable name-based virtual hosting, locate and uncomment the NameVirtualHost directive in the Apache configuration file.

The Apache documentation site has information about setting up name-based virtual hosts. You can also find the details for the NameVirtualHost directive.

Tags, , , , , ,

%d bloggers like this: