Installing extra packages on pfSense 2.0.1

Posted on .

Adding extra packages to pfsense is simple.

First enable SSH in System > Advanced and connect to your pfSense box using your favourite SSH client. Once connected choose 8 to open a shell.

Once in a shell add a FreeBSD repository to the PACKAGESITE environment variable like,

You may want to add this command to /root/.tcshrc so its set each time you login.

Now you can add packages from the FreeBSD8 repository using pkg_add -r [name].

Examples:

pkg_add -r iftop
pkg_add -r nano
pkg_add -r freecolor

Find the full list of packages at http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/Latest/

Update

After installing a new package, run the command rehash in order for it to be usable from the command-line (or log off and back on again).

WordPress reinstall

Posted on .

This wordpress installation had been originally installed in 2004 with WordPress version 1.0. I was having problems installing some new plugins and it was about time I reinstalled from a fresh code base.

Also created a child-theme of TwentyTelve with a few changes for a simplistic, functional layout.

Disable SugarSync Drive

Posted on .

I don’t know what is wrong with developers today, but it is a growing trend to make things “just work” at the expense of leaving any sort of options for the user to self-configure. Extra or advanced options seem to be a taboo with new applications, which is a real shame.

SugarSync v2 beta is one of these applications. Even the installer asks no questions, not letting me choose an installation folder, or where to put the SugarSync folder to begin with.

Well, one thing it installs is a virtual disk driver that enables a new SugarSync virtual drive, in my case G:. To disable this, open device manager as an administrator and disable the virtual disk driver.

devmgmt-disable-sugarsync-drive

You will need to show hidden devices to see it. Right click the device and disable.

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

Download
  terraria-init.sh (2.6 KiB, 4,963 hits)

Create md5 checksum files for each sub-directory

Posted on .

This bash script creates checksum files for each subdirectory and the files within.

If the script is run, and there are no changes, then there is no output. This makes it safe to put into a cronjob without fear of getting spammed.

Output can be forced with a “-d” flag.

Requires “md5sum” package to compute checksums.

Syntax:
md5-all-dir.sh [-d] <directory>

Download
  md5-all-dir.sh (4.1 KiB, 2,180 hits)

Continue reading