Oct 02 2006

My Must-Have Applications For Ubuntu

Here’s a list of some of my favourite or most relied-upon applications on Ubuntu. It’s not exhaustive but it’s a start. It doesn’t include extras like multi-media codecs or any of the sort of things you can get easily with something like EasyUbuntu. The lists arranged by purpose and are ordered alphabetically not by preference. Some things are not available in the Ubuntu repositories and are marked as such.

Desktop

  • deskbar-applet
  • gnome-keyring-manager
  • kde-style-polymer (from external source - makes QT apps look ok on gnome, see my post here)
  • MSTCoreFonts
  • nautilus-open-terminal
  • nautilus-scripts:
    • nautilus-script-collection-svn (subversion shortcuts)
    • nautilus-script-manager
  • skype (only beta 1.3 works, needs kde-style-polymer or looks ugly, get it from www.skype.com)
  • Tomboy (desktop notes tool)
  • xnest (for nested X logins)

Development

  • apache2
  • emacs-snapshot-gtk (emacs for the gnome desktop)
  • JEdit (from external jedit repo http://dl.sourceforge.net/sourceforge/jedit)
  • java:
    • ant
    • sun-java5-*
  • meld (visual/graphical diff tool)
  • mysql:
    • mysql-server
    • mysql-client
    • mysql-admin (note a wrapper script is needed as a bug workaround on this, can’t remember the bug link just now)
    • mysql-query
  • .Net (just listing the basic dev packages here)
    • mono-devel
    • monodoc-manual
  • php5:
    • php5 (basic setup for use with apache)
    • php5-* (choose whatever extra modules you need)
    • php5-cli (command line version)
  • python
  • ruby
    • ruby
    • irb
    • lib*-ruby (pickup any of the extra packages you need)
    • ri
    • rdoc
    • rails
  • subversion
  • vim-gnome (gvim)
  • vmware-server

Networking

  • Avahi (zeroconf/bonjour)
    • avahi-daemon
    • avahi-utils
    • libapache2-mod-dnssd (to auto-advertise apache2 sites available on your machine)
    • service-discovery-applet
    • libnss-mdns
  • ethereal
  • firestarter (basic firewall manager)
  • gftp (sftp and ftp client)
  • NetworkManager
  • rdesktop (Remote Desktop and Terminal Services Client)

Sound & Multimedia

  • banshee music player
  • f-spot photomanager
  • gnomebaker (cd-burner)
  • gxine (media player)

Jul 13 2006

PHP with SQL Server Express and Windows 2003

I’ve just set up SQL Server Express on our staging server cause I needed to interface Moodle with a customers existing SQLServer database for authentication.

This wasn’t as simple as I thought it would be, but after some set backs I got it working :)

Firstly, TCP connections to SQL Server Express are switched off by default to prevent newbie users opening themselves up to potential remote attack. Here’s a link to instructions on how to enable TCP connections: How to: Configure Express to accept remote connections.

Also note from the comments on the PHP mssql_connect function documentation that the hostname and port in the connection string are delimited using a comma ‘,’ rather than the more common colon ‘:’. E.g.

  1.  
  2. mssql_connect(‘localhost,1433′, ‘myusername’, ‘mypass’);
  3.  

The first problem I encountered after this was an ‘Unable to connect to server’ error. By scanning the user comments on the PHP mssql_connect function page I noticed that a key step in fixing the problem was to replace the PHP5 provided ntwdblib.dll with a newer one from the MS SQL Client Tools. However, this DLL no longer ships with MS SQL Server Express. Luckily I had a developer installation of SQL Server 2000 on my XP partition and was able to pick up version 2000.80.2039.0 from that.

However, I then ran into another problem. When I replaced the PHP 5 provided version ntwdblib.dll of with the new one and restarted IIS, the output from phpinfo() showed that the mssql extension wasn’t loading anymore. I couldn’t see any errors reported in browser nor the system error logs.

By chance I decided to run php -i on the command line. This was lucky cause this way a system error dialog popped up a warning about a missing DLL dependency.

The problem was that the new ntwdblib.dll had a dependency on MSVCR71.DLL which couldn’t be found in IIS’ path. I did a search for msvcr*.dll in C:\WINDOWS and found a copy of this DLL in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\. I copied it into my PHP install dir and restarted IIS. Then when I ran phpinfo() again the extension showed up.


Jun 20 2006

How to install PHP 5.x on Windows Server 2003 with IIS 6

Found a link to a good set of instructions for setting up PHP on IIS 6.

How to install PHP 5.x on Windows Server 2003 with IIS 6


Jun 20 2006

Setting up PHP in IIS 6 - where are the error logs?

Tag: PHP, System Administration, Web Development, WindowsDan @ 11:52 am

Having to get PHP 5 running with IIS 6 on Windows Server 2003 today. I was finding the process quite interesting until I wanted to check the error logs to find out the cause of an HTTP 500 error. It seems the default IIS setup doesn’t provide an easy way to get error logging info out of it. I totally agree with the sentiments expressed here. At least Apache comes setup out of the box to allow developers, developers, developers to do their job.

Then I found this page on the Microsoft site, seems I may have to write a VBScript to coax IIS into outputting it’s errors to the system error log :-|. I’m hoping something in the IIS Resource Kit will make my life easier.