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

Linux — Jeff Eske on June 26, 2009 at 9:43 am

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

where 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.

Mounting an external USB drive from the command line

Linux — Jeff Eske on June 24, 2009 at 11:27 am

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.

Manually Update Time Via ntpdate

Linux — Jeff Eske on June 24, 2009 at 11:22 am

To update the server time, type:

sudo ntpdate -b pool.ntp.org

Fixing Adding New User to OpenDocMan

General — Jeff Eske on June 12, 2009 at 12:10 pm

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.

To Manually Reset the Admin Password in WordPress

General — Jeff Eske on June 12, 2009 at 11:27 am

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’

Outlook .pst file locations

Uncategorized — Jeff Eske on June 8, 2009 at 2:45 pm
  • Windows Vista C:\Users\YourUserName\AppData\Local\Microsoft\Outlook\xxx.pst
  • Microsoft Windows XP C:\Documents and Settings\YourUserName \Local Settings\Application Data\Microsoft\Outlook\xxx.pst
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | Jeff's Meanderings*