phreek.org


Thursday, August 05, 2010

MS Works “Cannot display the End User License Agreement”

When starting MS Works for the first time under a new user profile, you receive the message “Cannot display the End User License Agreement which must be displayed and accepted before you can use this application. To display the agreement, reinstall the application.”

To fix it, I copied WKS6EULA.txt and st02eula.txt from my MS Works CD (D:\MSWORKS\COMMON\MSSHARED\WKSHARED\RETAIL) to “C:\Program Files\Common Files\Microsoft Shared\Works Shared”.

If you’re running a different version of works, your EULA file may be named either WKS5EULA.txt or WKS7EULA.txt as well as st03eula.txt so you will need to adjust accordingly.

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Wednesday, June 30, 2010

CodeIgniter URL rewriting on IIS 7

  • Download the IIS URL Rewriter module from Microsoft and install it on your IIS server.
  • Open IIS Manager and in your site you will now have an icon for “URL Rewrite” so double-click it.
  • In the top-right click “Add Rule(s)..”
  • Select “Blank Rule” under “Inbound Rules” and click OK.
  • Enter “Strip index.php” in the Rule Name text box.
  • Enter “^(.*)$” into the pattern text box.
  • Expand Conditions and add a rule each for “Is not a file” and “Is not a directory
  • Under Actions, in the Rewrite URL text box enter “index.php/{R:1}” and untick “Append query string
  • Click “Apply”
  • Edit your CI system/application/config/config.php file and set $config[‘index_page’] = “”;
Posted by darko in • PHPWindows
(0) Comments | (0) Trackbacks | Permalink

Monday, November 30, 2009

Using PN Agent with Citrix Web Interface 5.2 and PS 4

I ran into an issue while upgrading components in preparation for our XenApp 5 migration where after installing Web Interface 5.2 I could connect and see my published applications but when I tried to launch one I would get an error “Citrix online plug-in could not contact the server”.

The solution is to edit the WebInterface.conf in your PN Agent IIS site and add a line “RequireLaunchReference=off”.

Posted by darko in • CitrixWindows
(0) Comments | (0) Trackbacks | Permalink

Thursday, November 26, 2009

PXE-E32 TFTP Timeout Error Trying to PXE Boot With WDS 2008

It took quite a bit of Googling but I found the solution.

The reason for this problem is that MS KB953230 uses the same range of ports as WDS defaults to (64001-65000) for TFTP file transfers so you need to set WDS to use a different port range (62000-63000 works well). This will only occur on a server where you have the DNS role installed as well as WDS (most likely a domain controller).

WDS 2008 Network Options

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Thursday, October 29, 2009

How to upgrade Cisco 2960 firmware

Copy the .tar file you downloaded from cisco.com to a TFTP server then login to the switch and run “archive download-sw /overwrite /reload tftp://<your-tftp-ip>/<path-to-tar>/<tar-filename>

Posted by darko in • Cisco
(0) Comments | (0) Trackbacks | Permalink

Tuesday, October 13, 2009

Enable Tabbed Browsing In IE Under Terminal Services With Group Policy

You need to set “User Configuration \ Administrative Templates \ Windows Components \ Internet Explorer \ Turn Off Tabbed Browsing” to “Disabled”, then set “User Configuration \ Administrative Templates \ Windows Components \ Control Panel \ Display \ Desktop Themes \ Load a specific visual style or force Windows Classic” to “Enabled” but leave the path blank.

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Thursday, August 13, 2009

Best Practices for Assigning FSMO Roles

As we’re implementing a migration from Windows 2003/Exchange 2003 to Windows 2008/Exchange 2007 at work at the moment I’ve been doing a lot of reading on FSMO placement for the new domain controllers. I found this article which gives a clear outline of how it should be done.

In my environment, we have 1 physical DC which is also the file server and TS licensing server, and another VM which is built specifically as a DC. The VM is assigned the Schema Master, Domain Naming Master, PDC Emulator, RID Master roles and is a Global Catalogue, while the file server will handle the Infrastructure Master role and will NOT be a Global Catalogue. All DCs at branch offices will be setup as Read Only DCs and will be Global Catalogues and will be configured to cache the passwords of the users at that office. As we are also running Exchange 2007 at this site I am evaluating whether there is another server we can promote as a redundant Global Catalogue.

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Tuesday, March 03, 2009

How to resume a Linux terminal session after hitting CTRL-S

Many times I’ve gone to hit CTRL-K, S in a JOE session to save changes to a file but missed the “K” meaning I actually sent CTRL-S to the terminal which sends a “stop flow” signal.

Previously I’ve always just disconnected the session and restarted with a fresh one meaning I lost any changes to the file since my last save so tonight I decided to find out how to recover from this. Turns out all you need to do is hit CTRL-Q and you’ll be able to see all the changes that were sent to the screen since you hit CTRL-S.

Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Friday, January 16, 2009

mysqld_safe using high or 100% CPU

Both my network monitoring servers suffered this condition over the 2wks my company takes holidays for Christmas so I returned to work to find 2 VMs consuming 6ghz of CPU between them. A quick check of top showed mysqld_safe consuming 100% CPU on both VMs for no apparent reason.

After trying the usual /etc/init.d/mysql restart with no success, Google was my friend yet again. Turns out this is a common problem with MySQL 5.0.51 on Ubuntu so the procedure to recover is:

sudo /etc/init.d/mysql stop
sudo killall -9 mysqld_safe
sudo /etc/init.d/mysql start

In my journeys through many forums and blogs, I also discovered a great tool to help with MySQL performance issues: mytop. Basically it’s like the normal *nix “top” command, except for MySQL so you can see queries etc as they run.

Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Monday, October 13, 2008

Installing a Windows XP Guest on ESX or ESXi 3.5

After messing around for the past 2hrs trying to figure out which driver I needed for the LSI Logic SCSI controller under ESXi I’ve finally worked it out. You need to go to http://www.lsi.com/obsolete/lsi20320_3157.html and download the Windows XP WHQL driver (currently v1.20.18.00).

Once you’ve downloaded it, extract it, then extract the symmpi_wXP_1201800.ZIP file contained inside.

Open WinImage and create a new 1.44mb floppy with the files contained in symmpi_wXP_1201800.ZIP in the root of the image. Make sure you save it as a .FLP!!!

Copy the image to your datastore and attach it to the floppy drive of your XP VM (making sure you have LSI Logic selected in the SCSI controller options) but untick the option to have the floppy drive connected.

Start the XP install and make sure you hit F6 when prompted to install the additional SCSI drivers. Go back and connect your floppy drive and you will be able to load the drivers and complete the install.

Posted by darko in • VMWare
(0) Comments | (0) Trackbacks | Permalink

Monday, May 19, 2008

PHP+MS SQL using FreeTDS

BOFH Hunter - Chatting with MSSQL

Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Tuesday, May 06, 2008

QOTD

Two wrongs don’t make a right, but three lefts do.

Posted by darko in • MIscellaneous
(0) Comments | (0) Trackbacks | Permalink

Thursday, April 24, 2008

Updating permissions on all files and directories within a directory

I extracted a tarball which had applied 777 (rwx) permissions to all files and directories that it contained. I wanted to set all files to 644 and all directories to 755, but there were too many levels to do it manually so I needed to do it through a shell script. After trying various BASH “for” loops, I checked the man page for “find” and was able to do the whole lot in 2 lines:

find . * -type d -exec chmod 0755 {} +
find . * -type f -exec chmod 0644 {} 
Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Wednesday, March 12, 2008

Installing Citrix ICA Client 10.6 on Fedora 8

While I work at Head Office, my company runs Citrix Presentation Server 4.0 for branch and remote access. We also have access to Outlook Web Access for checking email from home but I prefer to use the fully-fledged Outlook client when possible, so I needed to install the ICA client on my home Linux workstation which currently runs Fedora 8. The following instructions got it working perfectly after logging in as “root”:

yum install libXp

  wget ftp://ftp.ics.com/openmotif/2.3/2.3.0/openmotif-2.3.0-1.fc6.i386.rpm
  rpm -Uvh openmotif-2.3.0-1.fc6.i386.rpm
  ln -s /usr/X11R6/lib/libXm.so.4.0.0 /usr/X11R6/lib/libXm.so.3
  ldconfig
  ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla/plugins/

  wget -O /usr/lib/ICAClient/keystore/cacerts/Equifax_Secure_Global_eBusiness_CA-1.crt https://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Global_eBusiness_CA-1.cer

  rpm -ivh—nodeps ICAClient-10.6-1.i386.rpm

NB: You may need to adjust or even ignore the second “wget” command depending on who your company bought its SSL certificate through. Mine bought theirs from http://www.trustico.com.au which required me to manually install the root certificate of their upstream CA (GeoTrust).

Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Thursday, February 28, 2008

How To Repair The FreeBSD 7.0 Boot Loader

I decided to install FreeBSD 7.0-RELEASE in a VMware VM tonight since it was just released, and while the installation went smoothly I soon discovered that leaving the MBR of a fresh VM untouched was the wrong thing to do. Obviously it needs something to kick it into action, so I had to download the FreeBSD 7.0 LiveFS CD, boot up, and run:

fdisk -B -b /mnt/boot/boot0 ad0

This assumes your primary boot drive and partition (ad0 and the root filesystem ‘/’ in my case) were mounted under /mnt.

Reboot and you should have a functioning FreeBSD system.

Posted by darko in • FreeBSD
(0) Comments | (0) Trackbacks | Permalink
Page 1 of 2 pages  1 2 >