How to check the uptime of a Linux server

Just type ‘uptime’ and you’re done:

Output:
This shows that it’s currently 2:36am, the server has been up for 28 days, 19 hours and 35 minutes, and there is one user connected.  The load average displays the average CPU load over the past last one, five, and fifteen minutes.

Install LambdaMOO 1.8.1 server with LambdaCore database on Ubuntu 12

 

Download the LambdaMOO server into your home folder using ‘wget’:

Output:

Extract the LambdaMOO .tar.gz archive:

Output:

Change directory & run the configure script:

Output:

You may have to install yacc before the next step:

Output:

Compile the server:

Output:
I’m not sure what the errors are all about but it seems to run fine regardless!

Download the LambdaCore database:

Output:

Extract the LamdaCore database:

That’s it, now you should be able to start up the MOO:

The format is: ./moo <input-db-file> <output-db-file> <port> &
The & is used to run it in the background so you don’t need to keep the window open.

Output:

To test it, just telnet to the port you specified above:

Output:

LINKS:

Download LambdaMOO-latest.tar.gz (server)
Download LambdaCore (database)

And be sure to visit Lisdude’s MOO Resources page:

Lisdude’s MOO Resources

How to embed a free IRC (Internet Relay Chat) chat room on your website

I recommend using Kiwi IRC because it’s easy, responsive, looks great (has 4 themes), easy authentication, and more.

Kiwi IRC

  1. Go to https://kiwiirc.com/embedding
  2. Enter IRC server address.   If you don’t know what to put, use: irc.freenode.net
  3. Enter a channel name.   Must start with a # character (e.g. #twat)
  4. Click on “Generate My Code” button.
  5. Copy and paste the generated HTML code into any html document.  (Choose Text mode if using WordPress)

Generated HTML:

And voila:

Or you can choose a different theme when generating the code, for example:

IRC LINKS:

Official Kiwi IRC Site – kiwiirc.com
IRC Search engine – irc.netsplit.de

 

Using ‘Mixed In Key 7’ to perform automatic key detection on MP3s

Post is coming soon… in the meantime:

Key Detection Software Comparison< (2015 Edition)/a> @ DjTechTools.com

Harmonic track mixing for DJs using Camelot wheel chart

Coming soon.

camelot-wheel

 

 

‘Maintenance Mode’ plugin for WordPress

Coming soon.

This plugin works great, lets you display maintenance page by user role (e.g., no maintenance page for admins/authors) and allows you to use a static HTML page.

Download Under Construction/Maintenance Mode plugin by Acurax.

Extract a .tar.gz archive to a specific location in Ubuntu 12.04

To extract .tar.gz:

Usage: tar -zxvf <filename>
Usage: tar -zxvf <filename> -C <folder>

  • -z : filter the archive through gzip
  • -x : extract files from an archive
  • -v : verbosely list files processed
  • -f filename : use archive file or device ARCHIVE

Examples:

Or, to do the opposite (create .tar.gz archive from a folder):

  • -z : filter the archive through gzip
  • -c : create a new archive
  • -v : verbosely list files processed
  • -f  filename : use archive file or device ARCHIVE

To exclude specific filetypes from either of the above, you can use –exclude … the following example excludes all .mp3 and .tar.gz files:

Example to create a .tar (non .gz) file  in the current folder named test.tar, archiving the folder /home/jamesc/test

Tar usage (output of “tar –help”)

 

Using MP3gain to losslessly adjust volume of tracks without re-encoding files

MP3gain doesn’t just normalize an MP3, it analyses it using the Replay Gain algorithm to determine how loud the file actually sounds to the human ear… and quite well, too.

Instructions coming soon, in the meantime:

MP3gain website (SourceForge.net)
MP3gain downloads (SourceForge.net)

Reload config file for Icecast radio streaming server without dropping listeners

Type:

or, find the PID for your Icecast process using “ps aux” (example: 1234) and type:

 

While kill and killall do normally terminate tasks, in this instance they’re being used to send a “hangup signal” (-HUP) which forces Icecast to refesh the configuration file (usually /etc/icecast2/icecast.xml) without dropping any of the client connections. Pretty hard to understate the usefulness of this, especially on a production server.

How to switch to another user using sudo in Ubuntu 12.04 shell

Usage: sudo -u <username> <shell>

Assuming your account has root/sudo permissions:

You may have to type in your password (not the password of the account you’re switching to.)

Just type “exit” to get back to your original session: