Monthly Archives: February 2008

Force Outlook to open all email in plain text

For reference. Strip HTML email in Outlook into plain text Content: First, this is secure as many of the worms and bugs rely on HTML script code. One good example could be the needless advertisements or images sent inside spam … Continue reading

Posted in software | Tagged | Leave a comment

Disable fast user switching on Vista

Getting Started Save all your work before switching. If the other user shuts down the computer or logs you off, Windows won’t save your open files automatically. In Vista (unlike Windows XP), Fast User Switching works if you’re on a … Continue reading

Posted in systems administration | Tagged | Leave a comment

Kicking a user off of a system (linux)

Quick reference would ‘NOT’ recommend using these: last -i1 baduser | awk ‘{print $3;exit}’ | xargs -p –replace iptables -A INPUT -s {} -j drop if [ "`who | grep $1`" != "" ] ; then sid=`ps -jU $1 | … Continue reading

Posted in systems administration | Tagged | Leave a comment

Authenicating kerberos against active directory

Your /etc/pam.d/system-auth is created with the command “authconfig” on a RHEL5 machine though you may have to manually edit it with other distributions: #%PAM-1.0# This file is auto-generated. # User changes will be destroyed the next time authconfig is run. … Continue reading

Posted in systems administration | Tagged | Leave a comment

Configuring sendmail to accept mail

if you get ( doing a netstat -an more ) tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN Then your sendmail server is configured to accept connections from the localhost only. To change this behavior, you usually need to edit /etc/mail/sendmail.mc Find … Continue reading

Posted in network, systems administration | Tagged | Leave a comment

Edit group policy on remote computer

Want to open up the MMC of a local Group Policy on a remote machine? Simply go to Start Run and type: gpedit.msc /gpcomputer: Computername

Posted in systems administration | Tagged , | 6 Comments

Running processes in the background on Linux

If you just want your program to simply run in the background, launch it with a “&” at the end of the command from the shell. However, if it expects to use stdout, stdin, or stderr, it will stop — … Continue reading

Posted in systems administration | Tagged | Leave a comment

Adding a character to a line using Perl

perl -p -i -e ‘s/(.)$/$1$1/g’ filename This changed my nonsense file: ghggk dethaks gjfkdld fyduftsdu flkgjd kflgjlk flkgjl f into a slightly different nonsense file: ghggkk dethakss gjfkdldd fyduftsduu flkgjd kflgjlk flkgjl ff

Posted in coding | Leave a comment

Getting Samba to play nicely with SELinux on RHEL

This helpful bit was written by Don Meyer. I’m a little too stubborn for a quick fix like this, so I went the route of adding the specific rules needed to allow SMB/Winbindd to run without throwing AVC errors. I’m … Continue reading

Posted in systems administration | Tagged | Leave a comment

Remove index.php from wiki URL

In httpd.conf: Alias /wiki/index.php /home/rsreese/richardsreese/htdocs/w/index.php Alias /wiki /home/rsreese/richardsreese/htdocs/w/index.php In Localsetting.php: $wgScriptPath = “/w”; $wgScript = “$wgScriptPath/index.php”; $wgRedirectScript = “$wgScriptPath/redirect.php”; ## For more information on customizing the URLs please see: ## http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url ## If using PHP as a CGI module, the … Continue reading

Posted in coding, web design | Leave a comment