Tag Archives: server

Renaming a Domain Controller

Posted on .

You can use netdom to rename any computer, including a domain controller:

However this will leave the attribute msDS-AdditionalDnsHostName with the old name. Check this in ADUC attribute editor (or ADSIEDIT.msc):

Remove the old name and restart.

PS. This fixes not being able to re-use the old name on another computer. You get the error The operation failed because SPN value provided for addition/modification is not unique forest-wide, and you will see the old domain name when you run setspn -l <oldname>. Performing the above attribute changes fixes this.

Installing TShock Terraria Server on Debian Wheezy

Posted on .

The following is how I installed TShock Terraria Server on a clean Debian Wheezy machine. The same method has been tested working on Ubuntu 12.04 LTS (Precise).

One important difference to other howtos is it does not install mono-complete and the plethora of dependencies that requires (including x11-common). This only installs the required libraries to run, nothing more.

Run these commands individually, this is not to be copy pasted into your shell in full.

Update: A few users are complaining of missing packages, however I have re-run the instructions in a fresh Wheezy guest and found no issues (see transcript of installation here).

Update2: I have successfully tested the following instructions using Ubuntu 12.04 LTS Precise (transcript here)

Update3: Tested working with TShock 4.2

Make sure you are using Debian 7 Wheezy or Ubuntu 12.04 LTS Precise.

Debian init-script

The following init-script can:

  • Connect to the screen console with ./terraria-server connect
  • Exits the server cleanly by issuing the “exit” or “exit-nosave” command to the server console
  • Fits perfectly if installation was made by the above howto

  terraria-init.sh (2.6 KiB, 3,668 hits)

Synchronize Windows with a Linux ntpd server

I have a Windows Server 2008 DC and I wanted to use my internal time server on a linux box running ntpd.

After a little hunting around, I found the command required to set Windows up to use the correct time peer.
w32tm /config /update /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8" /syncfromflags:MANUAL

After making this change, you need to restart the Windows Time Service by issuing the following 2 commands,
net stop w32time
net start w32time

If you have problems, first make sure the Windows Time Service is enabled.

This works with Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008.

ProFTPd Connection Delay

Posted on .

I noticed that ProFTPd took a few seconds to connect. On a LAN, it should be instant.

Sniffing traffic, it seemed that ProFTPd was first making an auth request using the ident protocol before falling back to user/pass authentication. This seems to be the standard behaviour according to RFC’s 912, 931 and 1413

Some google searching turned up a page over at metafilter concerning connection delay.

Adding this to the ProFTPd configuration file disabled the auth checks and made connecting/authorising instant, as it should be.
IdentLookups off

On Debian, the ProFTPd config file is at /etc/proftpd/proftpd.conf

Exchange 2007 Failed to Install

Posted on .

Having just upgraded a server to Windows Server 2008 with Microsoft Exchange 2007 I came accross a frustrating issue.

If IPv6 has been disabled on your network interface prior to installation of Exchange 2007 then Exchange will fail to install the Hub Transport Server role with the following error,
Service 'MSExchangeTransport' failed to reach status 'Running' on this server.

Other Exchange services will fail to start if IPv6 has been unticked in your network adapters configuration settings. I routinely disable IPv6 if it is not needed on the network, but it seems Exchange has been written to utilize the new protocol and requires it to function.