Overcoming Terminal Server “Terminal server has exceeded maximum number of allowed connection” problem

Posted on June 26, 2009

Since Windows server only gives you 2 remote connections, it’s easy to end up “locked out” of the server.  To overcome that, you can actually use a third remote connection that allows you to get in and kill the other offending connections.

On Linux type:

rdesktop -0 1.2.3.4

where 1.2.3.4 is the ip address of the server that you want to connect to.  Obviously, you need to have rdesktop installed and it should be a fairly recent version.

Filed Under Linux | Leave a Comment

Mounting an external USB drive from the command line

Posted on June 24, 2009

The easiest way to mount an external USB drive from the commandline is:

sudo mount -t ntfs-3g /dev/sdc1 /media/red -o umask=0000

This actually sets it up so that’s completely readable/writeable by anyone.

Filed Under Linux | Leave a Comment

Manually Update Time Via ntpdate

Posted on June 24, 2009

To update the server time, type:

sudo ntpdate -b pool.ntp.org

Filed Under Linux | Leave a Comment

Fixing Adding New User to OpenDocMan

Posted on June 12, 2009

For me, OpenDocMan wouldn’t allow me to add new users.  It turns out that the SQL query was wrong.  Since the first field, id,  is set as ‘autoincrement’, it’s handled by the database directly, so there should be no reference to it in the query.  It may just be my installation that it doesn’t work on, I don’t know.  Anyway, here’s what I did to get it to work.  You need to remove a couple of things from one of the pages – commitchange.php

Firstly, change $query = “INSERT INTO user (id, username, password,etc.
to read

$query = “INSERT INTO user (username, password,etc.

Notice that id and the comma are removed.

Secondly, change VALUES(”, ‘”. addslashes($_POST[

to read

VALUES( ‘”. addslashes($_POST[

Notice that the single quotes and comma are removed, just after the parentheses.

Filed Under General | Leave a Comment

To Manually Reset the Admin Password in WordPress

Posted on June 12, 2009

In case of Brain-fart, use the instructions below to reset the admin password in WordPress.  It needs to be done through phpMyAdmin, MySQL query browser, or some such place that allows you to run SQL commands.

update wordpress.wp_users
set user_pass = MD5(‘new_password’)
where user_login = ‘admin’

Filed Under General | Leave a Comment

Outlook .pst file locations

Posted on June 8, 2009

© Copyright Jeff's Blog • Powered by Wordpress • Using Detour theme created by Brian Gardner.