VNC Install on RedHat

Submitted by admin on Tue, 02/12/2013 - 14:58
Topic

[donmc@MSJ ~]$ sudo rpm -Uvh VNC-Server-5.0.4-Linux-x86.rpm
[sudo] password for donmc:
Preparing... ########################################### [100%]
1:realvnc-vnc-server ########################################### [100%]
Checking for xauth... [OK]
Updating /etc/pam.d/vncserver
Looking for font path... not found.
Generating private key:
p: .....................................
q: ................
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:

bash history date/time stamps

Submitted by admin on Tue, 01/08/2013 - 14:32

By default, the bash history does not keep tabs on the time of day that a given command was run. But it is really as simple as defining ONE environment variable: "HISTTIMEFORMAT"

This from "Linux by Example": HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is "%F %T ".

export HISTTIMEFORMAT="%F %T "

Upgraded jaxbeachtech.com to Drupal 7

Submitted by admin on Sat, 10/27/2012 - 19:06

I finally bit the bullet and upgraded the site to Drupal V7 - it was pretty straight forward, a few glitches here and there, but overall, pretty smooth. It was worth waiting a few years for the code to be nicely cleaned up :)

A BIG Thank You to all those clever people that contributed to the Drupal 7 experience - there is no doubt about it - it is a fantastic product.

A useful script for crontab (for all users) listings (let's see what running automagically...)

Submitted by donmc on Tue, 09/18/2012 - 19:19

I have been working on a system inherited from several earlier sysadmins, and you have to keep an eye out for cron jobs running for other users - so it's nice to be able to review them all in one hit - just run this on a command line as root:

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

Apache .htaccess -how to 301 redirect from a non-WWW to WWW.mysite.com

Submitted by donmc on Mon, 08/06/2012 - 12:08

I have had to mess with this way too many times, so just for the record, here is what works for me:
[this based on an Apache/2.2.14 (Ubuntu) system...]


  RewriteEngine on
  #
  # this is for sites using port 80:
  RewriteCond %{HTTP_HOST} ^mysite.com [NC]
  RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]